import xbot
import xbot_visual
from . import package
from .package import variables as glv
import time

def main(args):
    if args is None:
        parameter = ""
    else:
        parameter = args.get("parameter", "")
    try:
        # win32.element.input
        # dialog.show_select_file_dialog
        # programing.databook.get_row_count
        IMEI邮箱账号 = xbot_visual.excel.launch(launch_way="open", driver_way="auto_check", open_filename="C:\\Users\\Administrator\\Desktop\\IMEI邮箱账号.xlsx", save_filename="", isvisible=False, ignoreformula=False, password=xbot_visual.decrypt(""), write_password=None, update_links=False, _block=("main", 4, "打开/新建Excel"))
        excel_row_count = xbot_visual.excel.get_row_count(workbook=IMEI邮箱账号, sheet_name="", _block=("main", 5, "读取Excel总行数"))
        # dialog.show_input_dialog
        # programing.variable
        zhanghao_count = xbot_visual.programing.variable(value=lambda: 2
        , _block=("main", 8, "设置变量"))
        import time
        import  re
        from concurrent.futures import  ThreadPoolExecutor #导入线程#池
        
        import pandas as pd
        import requests
        
        def put_order(car_id,content_text):
            car_list=car_id.split("|")
            print(car_list)
        
            headers = {
                "Accept": "text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.7",
                "Accept-Language": "zh-CN,zh;q=0.9",
                "Cache-Control": "no-cache",
                "Connection": "keep-alive",
                "Content-Type": "application/x-www-form-urlencoded",
                "Origin": "http://xgkj.163wx.cn",
                "Pragma": "no-cache",
                "Referer": "http://xgkj.163wx.cn/admincp/code.php?id="+car_list[0],
                "Upgrade-Insecure-Requests": "1",
                "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/127.0.0.0 Safari/537.36 Edg/127.0.0.0"
            }
            cookies = {
                "intro_show": "1",
                "PHPSESSID": "ls8f72ofr3sbdgp540l2g62iae",
                "SITE_LANGUAGE": "cn"
            }
            url = "http://xgkj.163wx.cn/admincp/code.php"
            params = {
                "id":car_list[0]
            }
            data = {
                "id": car_list[0],
                "userId": car_list[1],
                # "codeCr": car_list[2],
                "imei": car_list[3],
                "packageId": car_list[5],
                "pckTitle": "US ATT黑白名单查询+ 低概率解锁 快解 （是否解锁都要收费）",
                "updateType": "4",
                "codeStatusId": "2",
                "other": "",
                "codeSentToOtherServer": "0",
                "OrderIdFromServer": "",
                "txtCode": "<p><font _msthash=\"299\" _mstmutation=\"1\" _msttexthash=\"104635284\">"+str(content_text)+"</font></p>\r\n",
                "txtComments": ""
            }
            response = requests.post(url, headers=headers, cookies=cookies, params=params, data=data, verify=False)
        
        #这里定义了提交订单的函数
        
        
        
        
        
        
        
        
        
        
        
        
        def fanyi(english):
            proxy_url = 'http://127.0.0.1:7897'  # 假设代理服务器的地址和端口是127.0.0.1和3128
            proxies = {
               
            }
        
            headers = {
                "accept": "*/*",
                "accept-language": "zh-CN,zh;q=0.9",
                "cache-control": "no-cache",
                "content-type": "application/x-www-form-urlencoded",
                "origin": "https://www.bing.com",
                "pragma": "no-cache",
                "priority": "u=1, i",
                "referer": "https://www.bing.com/search?q=%E5%9C%A8%E7%BA%BF%E7%BF%BB%E8%AF%91&form=ANNTH1&refig=9FD88D2422854B9ABB7620825804ACC2&pc=ACTS",
                "sec-ch-ua": "\"Not)A;Brand\";v=\"99\", \"Microsoft Edge\";v=\"127\", \"Chromium\";v=\"127\"",
                "sec-ch-ua-arch": "\"x86\"",
                "sec-ch-ua-bitness": "\"64\"",
                "sec-ch-ua-full-version": "\"127.0.2651.98\"",
                "sec-ch-ua-full-version-list": "\"Not)A;Brand\";v=\"99.0.0.0\", \"Microsoft Edge\";v=\"127.0.2651.98\", \"Chromium\";v=\"127.0.6533.100\"",
                "sec-ch-ua-mobile": "?0",
                "sec-ch-ua-model": "\"\"",
                "sec-ch-ua-platform": "\"Windows\"",
                "sec-ch-ua-platform-version": "\"15.0.0\"",
                "sec-fetch-dest": "empty",
                "sec-fetch-mode": "cors",
                "sec-fetch-site": "same-origin",
                "sec-ms-gec": "CC3B9CF3FFA8283989A75CEC7B83FE96F4C7274308E0099703C3605B9171188F",
                "sec-ms-gec-version": "1-127.0.2651.98",
                "user-agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/127.0.0.0 Safari/537.36 Edg/127.0.0.0",
                "x-client-data": "eyIxIjoiMTIiLCIxMCI6IlwiTFhBTkhkbE5kenBrMWUyekhpRlp5ZlhnZXZLTE1SZHNscHJCV2VpNkNXRT1cIiIsIjIiOiIxIiwiMyI6IjAiLCI0IjoiNTE4MTM3NTkxMTI0NjEzNDU0IiwiNSI6IlwiNGxUVFpKSHVTTUpJcjJSdlpVdkZ4ZEg5YlVadXlQT1RZSW1xY3F5dFdqMD1cIiIsIjYiOiJzdGFibGUiLCI3IjoiMzQzNTk3MzgzOTY4IiwiOSI6ImRlc2t0b3AifQ==",
                "x-edge-shopping-flag": "1"
            }
            cookies = {
                "MUID": "13D2FF2D9CFC6DC82FB8EB099DD26C24",
                "SRCHD": "AF=NOFORM",
                "SRCHUID": "V=2&GUID=F86A8C616EF74B09A975C6691008B19E&dmnchg=1",
                "MUIDB": "13D2FF2D9CFC6DC82FB8EB099DD26C24",
                "MMCASM": "ID=7FC62F9B51574FA0A765EC119B84EC90",
                "PPLState": "1",
                "MSPTC": "v3FZpucw8sOQQXpf0sS0uONtLN4DsBc1_wkcXJErTnc",
                "EDGSRCHHPGUSR": "CIBV=1.1634.3",
                "ANON": "A=2D45042B69E1622F32AF1549FFFFFFFF&E=1dbb&W=2",
                "NAP": "V=1.9&E=1d61&C=nRhZUZerB5CwEVwEZduSE0L4Uhl_q1r2BxPXeYuNk8GXO7DxXc8QnA&W=2",
                "KievRPSSecAuth": "FADaAxRaTOJILtFsMkpLVWSG6AN6C/svRwNmAAAEgAAACBmoN4SkKMuImAPNaQOSugTIObgM+BABAM7frVgbvkQcVF0y3SJGLT+Grw9qK+6qYeIQ1a8tKpbo92JVb4XJauEoH/v8BBW3dVTaYrUHenxP/WFxeteJqvEVun3799F8j9/KnOJ+IrePabQ1x7ZqNymqyFccWRW1i9dwgH26rHoXuphU4bnOk0HH4NC85a7Kdkg3lQM7LWl4E9YHRK+hos+9U//f0YYD3E+zmlh1af38HI/7rMeVhjN9HVht1ebRphAmVNjeH32QcxQvdexnAA5P9Fn2L+cDdwlYVuBLgiObGhCKTv61+ht5+E3I81yBuz8v0k5jYbxXTBLl6OLM0nOrnO/tucixABoXpLLbChzGL3lWYaltlbSoMjw1bJdufRTX7HGN8CHRQM2V7r2VRDefyvTg7okY6NjcTaLk/U34YahkEN+fMJ/y1a+2RonrPbxANTK4lM6kVcyM74ZIWdEe7SJhZnzFqVGZ+rep7BehTRCYoevu7nD990x6FWbIfe2zkUDYfRY4b8G8Pmb8B2NfmODx5a33qGyUfbQY80J4kIr+zEY87oP9Nhl7JU5OIlU9ER8JIOcZUNBxUk048mdLN/dHDFEB2D+RkWqPTthBhb5wu6ptbbtzIFGRDKEs03RiwM+Uu/Qr7upvDv290TyTEiXT3IijPEu4+lScwEulCqECdaHGVcCZlgDRzMJH9yOHMj8CtzlVeluZN+kG5EtrDVSPlfbyLlXOe30GjzuImqAun4FprG6oI8HLqElL+fy7x4e7/aI7Tqb68UfFCtkBt6JlKoQ6hRxyUigv60JK1iJOdRqZEfX8lBstLdQUGUtEMD49T5FN3giMq05PdOoajUR2Cvs/jZVxNO8o0nHYIvT+eLKYR8u+AYuyPAnDHedtucRdW7UVeRBkgEx+l7IFZS01jMEjljl0NAwMfXsDrBQ/fRbN6EmbpxRtIwbo5OhfWQtBLqRWoCWIK1NNWtAD33vL20CD1fXvJZiSnIudsE8sEwLWVAwKIsALv7b1LFYYZCnMNbxUQxuLsQ4oU2x57wCw1QfpMkn5VPlp6PNLMU1kqlk1hyHauAxBveRxW1jeAABd9hwtj+wLhkwzAFkTGd+053bfkpnhNd/hv3SE/tOfyNkUUf7s7RywZq/ICQdBAB2KnFXyfgD4BfAsTgA7MtENrcDu3Tx78/DMRvN0exU8/DHavD2AsjY9p0dFioprsR9UT0NvMibl0lHTZzk2oBQAB1x4OIw/HMET99sxYatbW3pYYNo=",
                "mapc": "rm=0",
                "imgv": "lodlg=1&gts=20240517",
                "TTRSL": "zh-Hans",
                "_UR": "QS=0&TQS=0",
                "_HPVN": "CS=eyJQbiI6eyJDbiI6MiwiU3QiOjAsIlFzIjowLCJQcm9kIjoiUCJ9LCJTYyI6eyJDbiI6MiwiU3QiOjAsIlFzIjowLCJQcm9kIjoiSCJ9LCJReiI6eyJDbiI6MiwiU3QiOjAsIlFzIjowLCJQcm9kIjoiVCJ9LCJBcCI6dHJ1ZSwiTXV0ZSI6dHJ1ZSwiTGFkIjoiMjAyNC0wNy0yOVQwMDowMDowMFoiLCJJb3RkIjowLCJHd2IiOjAsIlRucyI6MCwiRGZ0IjpudWxsLCJNdnMiOjAsIkZsdCI6MCwiSW1wIjoyLCJUb2JuIjowfQ==",
                "TRBDG": "FIMPR=1",
                "CortanaAppUID": "16BB339C89BAEFA0A4DF7F913261F0F1",
                "ipv6": "hit=1725003375291",
                "_SS": "PC=ACTS&SID=268FDD53EDA0626020B1C98EECC663B1&R=200&RB=200&GB=0&RG=0&RP=200",
                "SRCHS": "PC=ACTS",
                "_Rwho": "u=d&ts=2024-08-30",
                "MSCCSC": "1",
                "SNRHOP": "I=&TS=",
                "ABDEF": "V=13&ABDV=13&MRNB=1725035221798&MRB=0",
                "_EDGE_S": "ui=zh-cn&SID=268FDD53EDA0626020B1C98EECC663B1&mkt=zh-hk",
                "cct": "pi7MU3k29dAMBp9Lc85NVBQjMyFe1deL4g9bJUf1fb7_t0G_iF8Q7N1vXR9H8hL4Od-fiuvQSh6WggTHSdW7ag",
                "USRLOC": "HS=1&ELOC=LAT=28.155311584472656|LON=112.96781158447266|N=%E5%A4%A9%E5%BF%83%E5%8C%BA%EF%BC%8C%E6%B9%96%E5%8D%97%E7%9C%81|ELT=2|&CLOC=LAT=28.155310796305542|LON=112.96781313389508|A=733.4464586120832|TS=240901064641|SRC=W&BID=MjQwOTAxMTQ0NjM5X2UxYmIzNjEzMDljNWUyYjU2NTc0ZjFlMWU5NDkwNzY5MDQzYjNlYjMwNTE2MTNmMGViMzQxOTMyZTI5MDM3OGY=",
                "btstkn": "8t0lYFGKbF2eXN4Cj9fPf%252FUhxe4SQQyyguYP88MfNO2hCutRyF1aGFtL9Z9cbmfwTmNwUN1XUsyAdjxpKz5o8P7jSxFiuEml0E1j5sowpqo%253D",
                "_TTSS_IN": "hist=WyJ6aC1IYW5zIiwiZW4iLCJhdXRvLWRldGVjdCJd&isADRU=1",
                "_tarLang": "default=zh-Hans&newFeature=tonetranslation",
                "_TTSS_OUT": "hist=WyJlbiIsInpoLUhhbnMiXQ==",
                "SRCHUSR": "DOB=20240213&T=1725183127000",
                "BFPRResults": "FirstPageUrls=E7E61D0A0E703CD5875FAB3BF77767DB%2CEED0E41655B6CD060D2A26B039936CBF%2C88BE578FA868FC11588F0E6F91AA246B%2CA5B8DB8CA043D2178EB59E0F5465E21E%2CE6685640987D6C8E4825716B492796DA%2CBBAC69C410084F629934557A4F9C7303%2CBB3E1AF144B1740161E91038A1DD3117%2CCC0B698F760FDCA51F2F132D64DFE41E%2C82BDE8AB10406CD4915C04E6671798FF%2C9FEE96FBCA328DD727558F7BC3835493&FPIG=0B97E7C11D174308B5496A702B53FE24",
                "_C_ETH": "1",
                "GC": "IXXYOFeJwzXlQcM5y67ECVsSHnmS3wqKI2SkOYByxSIqZiaavb8q1jYVG5JKQzNwvZoEsivMTlOmtB3CYllRrA",
                "_RwBf": "r=0&ilt=1&ihpd=0&ispd=1&rc=200&rb=200&gb=0&rg=0&pc=200&mtu=0&rbb=0.0&g=0&cid=&clo=0&v=11&l=2024-09-01T07:00:00.0000000Z&lft=0001-01-01T00:00:00.0000000&aof=0&ard=0001-01-01T00:00:00.0000000&rwdbt=0001-01-01T16:00:00.0000000-08:00&rwflt=0001-01-01T16:00:00.0000000-08:00&o=0&p=MSAAUTOENROLL&c=MR000T&t=7414&s=2023-10-17T12:52:48.1178135+00:00&ts=2024-09-01T09:54:21.3565324+00:00&rwred=0&wls=0&wlb=0&wle=1&ccp=2&lka=0&lkt=0&aad=0&TH=&mta=0&e=_YS18L5yHqfVVx_Su7isi28yUwAbcjYUnAsSfR0BiZY5LaxJfLGWZJVPKckO7y4gxjY3sncSEuzKIAAkBRmabA&A=&cpt=0",
                "SRCHHPGUSR": "SRCHLANG=zh-Hans&PV=15.0.0&BZA=0&BRW=NOTP&BRH=S&CW=862&CH=695&SCW=1084&SCH=3642&DPR=1.3&UTC=480&DM=0&EXLTT=31&WTS=63860779927&HV=1725184459&PRVCW=1488&PRVCH=695&PR=1.25&IG=0B32E491D97449C4924DC850B12FC5F2&CIBV=1.1805.0&THEME=0&WEBTHEME=0"
            }
            url = "https://www.bing.com/ttranslatev3"
            params = {
                "": "",
                "IG": "0B32E491D97449C4924DC850B12FC5F2",
                "IID": "SERP.5614"
            }
            data = {
                "": "",
                "fromLang": "auto-detect",
                "to": "zh-Hans",
                "token": "HWcNFwEujAB-yoCx0JpQH-OKEba8LMH9",
                "key": "1725184460031",
                "text": english,
                "tryFetchingGenderDebiasedTranslations": "true"
            }
            response = requests.post(url, headers=headers, cookies=cookies, params=params, data=data,proxies=proxies)
        
            # print(response.text)
            # print(response)
            str1=[{"detectedLanguage":{"language":"en","score":1.0},"translations":[{"text":"让我们解锁您的设备","transliteration":{"text":"ràngwǒmen jiěsuǒ nínde shèbèi","script":"Latn"},"to":"zh-Hans","sentLen":{"srcSentLen":[30],"transSentLen":[9]}}]}]
        
            # print(str1[0]['translations'][0]['text'])
            return str1[0]['translations'][0]['text']
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        #邮箱获取并上传数据
        def worker(IMEI_ID,email):
            global result_t
        
            obj = re.compile(
                "Make sure you \n(?P<url>.*?)\nconfirm your request  within 24 hours or we'll have to cancel it.\n", re.DOTALL)
            while True:
                proxy_url = 'http://127.0.0.1:7897'  # 假设代理服务器的地址和端口是127.0.0.1和3128
                proxies = {
                   
                }
        
                import requests
                try:
                    url = "https://api.rurl.vip/mail/get"
        
                    params = {
                        "user": "318258885",
                        "token": "342b29f569914a77dbdc2923b5dbacb1cd12eeb1",
                        "receiver": str(email),  # 用邮箱账号即可收取信息,
                        "subject": "Heads up! You have 24 hours to confirm your unlock request.",
                        "type": "HTML"
                    }
        
                    result = requests.get(url, params=params, proxies=proxies)
        
                    config_url = str(obj.findall(result.text)[0]).strip('').strip("\n")
                    print(config_url)
                    # 解析出确认的链接
        
                    import requests
        
                    headers = {
                        "accept": "text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.7",
                        "accept-language": "zh-CN,zh;q=0.9",
                        "cache-control": "no-cache",
                        "pragma": "no-cache",
                        "priority": "u=0, i",
                        "sec-ch-ua": "\"Not)A;Brand\";v=\"99\", \"Microsoft Edge\";v=\"127\", \"Chromium\";v=\"127\"",
                        "sec-ch-ua-mobile": "?0",
                        "sec-ch-ua-platform": "\"Windows\"",
                        "sec-fetch-dest": "document",
                        "sec-fetch-mode": "navigate",
                        "sec-fetch-site": "none",
                        "sec-fetch-user": "?1",
                        "upgrade-insecure-requests": "1",
                        "user-agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/127.0.0.0 Safari/537.36 Edg/127.0.0.0"
                    }
                    cookies = {
                        "_4c_": "%7B%22_4c_mc_%22%3A%2219cabcfe-28a5-4a3b-a068-4bf2d5ff8361%22%7D",
                        "rxVisitor": "1725096406952124V7N3F3654QLTJCRKFJRP8F3PTDO6H",
                        "at_check": "true",
                        "AMCVS_55633F7A534535110A490D44%40AdobeOrg": "1",
                        "idse_stack": "dadc",
                        "UUID": "66d2e1d7-0982-a266-5bfb-64b6d49fc5dc",
                        "s_ecid": "MCMID%7C76543810940746683772065105917184933853",
                        "AMCV_55633F7A534535110A490D44%40AdobeOrg": "1994364360%7CMCMID%7C76543810940746683772065105917184933853%7CMCAAMLH-1725701207%7C3%7CMCAAMB-1725701207%7C6G1ynYcLPuiQxYZrsz_pkqfLG9yMXBpb2zX5dvJdYQJzPXImdj0y%7CMCOPTOUT-1725103607s%7CNONE%7CMCAID%7CNONE%7CvVersion%7C3.4.0",
                        "CIP": "109.110.162.54",
                        "_gcl_au": "1.1.968112611.1725096409",
                        "azure_ssaf_stack": "ssafwestus2",
                        "at_geo": "{%22latitude%22:22.35%2C%22longitude%22:114.13%2C%22countryCode%22:%22HK%22%2C%22stateCode%22:%22%22%2C%22city%22:%22KWAICHUNG%22}",
                        "ixp": "cfbeacaf-77c9-4e53-af31-f339f158366a",
                        "gtmsales": "azw2",
                        "akaalb_prod_sales": "~op=prod_sales_alb:prod-sales-azw2|~rv=76~m=prod-sales-azw2:0|~os=c2e53dcabb81922a188c759e7de57e2b~id=c583e8842d6d3d736eccbd8f988b1333",
                        "idp-source": "EMPTY",
                        "QuantumMetricUserID": "99ce6051deea752f152de1346e2c2825",
                        "ajs_anonymous_id": "66d2e1d7-0982-a266-5bfb-64b6d49fc5dc",
                        "_fbp": "fb.1.1725096431350.1209407830",
                        "_meta_facebookTag_sync": "1725096431351",
                        "_meta_facebookTag_sync_63973384029222": "1725096431353",
                        "kndctr_55633F7A534535110A490D44_AdobeOrg_identity": "CiY3NjU0MzgxMDk0MDc0NjY4Mzc3MjA2NTEwNTkxNzE4NDkzMzg1M1IRCOKhir6aMhgCKgRKUE4zMAOgAemhir6aMvAB4qGKvpoy",
                        "attpc-tmp": "1",
                        "_meta_neustar_fabrickId_failure": "timeout",
                        "_meta_neustar_a_failure": "timeout",
                        "_meta_neustar_b_failure": "timeout",
                        "e1Segment": "000",
                        "bSegment": "",
                        "QuantumMetricSessionID": "87d76c6847cd32fc8c5de7ec9fa34a2b",
                        "ak_bmsc": "659667BD34BB785A017A92F511CCFA99~000000000000000000000000000000~YAAQPe8hF4+6apmRAQAAGONxrBhnqbgHwbtdSl+YRIIWCIFPQNlzTwrM2gW9aLpo/ZAeLCdYzmOlru7fJZeqHH5KcrLzD4+YYd8/r1+hboo5a2RDDLIkoIX5l4jTJ1zH/wyvjeyApiQvbFytMa9zNMpfXMRe8R6WZbo21Q66h3nqKBbTAh3zHop1qdfovg/9s+gOCDmzihfs5TRuWjCRw7BslrLFoMt9MlkABDFgdxLYh2QtT8s/FzMZw3DNtLmTfG7UUDvV5Mq3tmeVE6DzpNiNleeHAfCuUXnEwhjku4/XinRhj3m9aivxCZVL2MVaaGzY5oiUimT+dKuO277VA+rIXH1ONsXiFtpfhP0MXp4N6FsMbehMhRWWpzncgDQP2Vtp4BulQQ==",
                        "kndctr_55633F7A534535110A490D44_AdobeOrg_cluster": "jpn3",
                        "_meta_googleGtag_session_id": "1725175035",
                        "ChatAB": "Nuance",
                        "AKA_A2": "A",
                        "dtSa": "-",
                        "_meta_googleGtag_ga_session_count": "1",
                        "_abck": "8D927DA4041EA68218129BB1EF74D715~0~YAAQQe8hF1XUt42RAQAALTGOrAzecdHBjQ1tUN7ZV76mQ+w+MFPVt5Q02RdnDpPI1FTgD7WOuZuVaVQMnzQxivoWwbxYl7Nx+O8cFc31ik/suQVyrnWoKl6IBJFRRXaSCUVBPjdAVidJYJYxpLQs29FrTHZoD3w+XVTqTVtvIv7kVukOf2sQOF56huaPnMM1xnDDdT7WbBbxnN1JOLiGbfTGJDSYei5BvTSXyFu4yA41SXQZFa/0jqHFn+P4wcWEuK+ut908ITXHAd2SzXRLsGaolOpierD9PvHVUzEiJ5TdFrJBSvtBjKNmSPmsUDjFCW2HIXslEJrdMdcXF79Z6VhBRnCv4NMxnOePflan6cyx/s9VFu6cvld9gtFsImtfUnBuTtjIhcTJ+AO2M+B70Jl6aSmrGi9XILeFOlEUJGZbaXE+uDI+b/4LV/6gbj/pUqLh1gTy/NsjrZlslNb6kBmR/oWdjMCEti6mbZsKnr3a6oFrbopxjZ9HbXLZaZGRlcqdKN0xF8tFNdE4m+pZQebyG/8s6ryZTuqNkCJ8HvaT/n0B+aCiwUqQqg9BfoPQZkYBJzH5/xXujOhopALfWSw5/k7MpF3Jt+W++DZdqwvMH1GIc/iPMqpyns/XfB/wbRhxquMrfUmdYz4kKMQEQ2RwOwzs3K6VngAtLw==~-1~-1~-1",
                        "_uetsid": "2cc3bce0677b11efb1ffe9267547a6dc",
                        "_uetvid": "2cc3e680677b11efa1bc3fc23b3d6c3e",
                        "bm_mi": "6133650663B6FCC1D6BE40A64EC468AD~YAAQ7C43F7Ys4ZmRAQAAl6aarBi/tW5Efyo0IAde2rXCJKmMkt/QUNgqPpPJomMlFXxM1Vsim5CX3sj3rozk21PVKChbYPuzRcKURFTuUcn71cYmjfHtZAVruTwq3/StQ4uxd6vkZMbbgaq4sM1FZ8+3GLq0poAsr8ohqOz1wHTjEQlxGgxs/tlodveoYovmYeGlY/AySMWSuKEjkbwUi0n24jdQRdOzhJVzmHvHJyY/nnWAFmVj8uqaeLsRTP9f3e6HGWFla7hq52bo2FjYpjef/XckQi2hwnvuBhoeC65Sy1IVFtm+JlUjVCR/KoeFqBufNQipvrVGoukE4sflbrCVng==~1",
                        "bm_sz": "98BA0B3FFC22488254E4E3D541F17248~YAAQ7C43F7gs4ZmRAQAAl6aarBjNE+fogh00SeRMeHml6+bZglKhnuIwi3S4YT0R/AXtkfg/3I0AHMdux/V7VmK2gZcLOUocDg8PWLzRafUsYsikZ01i0xj8x9eVmUCGH1qE9n505XOq6IBDIIJ1DfYW9jsBNHOuxbvtaD5MewV8aEDdg98yal1TG0wizhMQKkgJJ8ojoTpTTPgIzs1CGgKwoUbFlr+oV3M+4luAexNNaLYAkBNzkFrXrrNCYmMm5fAtFMqCiNVWnypojWDKts8vU86VAAlYibZgLRp8+HX7lBpOVvryB+Tni7fwMKQsbYlIO+qk4I4MeGEcDqTbqXcuRzvephOVbqXMWv++0i/8u2Htfn4R4HclQ3Udvf1DH2edkFjgMxhi7wrsONLfubh1gpmI6mod/MVeSq2UfxGK09KfoRM8GwqGk9AQ+dZdSgD0Tf68FuKJudWAZpjDJz1PPjbW+owe6NdJS+Zlz61u+liXkqjtKVMnqKFqTsSox2wltYDvZoZHo74qVrkh2ySIcEkIu7Tc7pXteqmfFnfL~4408368~3749684",
                        "mboxEdgeCluster": "38",
                        "mbox": "PC#00aec01bebc442d0ab78ed3cf67fa863.38_0#1788422501|session#f75be47b0eec488d8b7550cb2a6ade28#1725179561",
                        "gtmoce": "aze2",
                        "_meta_googleGtag_ga": "GA1.2.1862194503.1725177702",
                        "_meta_googleGtag_ga_library_loaded": "1725177702913",
                        "fabrickId": "E1:zHmDhiV1rWIo_z3oO9rt_whyDBpR_WRR6Oz_ZDL6GUOmYvZ5ZTaqCfblCKNRfGYwZTz610WEuaLGbWVOPEt7p8I8BlEr57cT-VeecPpYa_JOzZNQGVO_axsxIVQXDU7z",
                        "idpmgw": "eyJjcyI6IlVuQXV0aCIsImNzVGsiOiJkOTMyMmExN2MyNWVhNmU3ZmMyOGQyNTdmMGRlODZlYzU2ZDg1NWEwIiwic2lkIjoiYTZkMDkxOWEtMjlmNC00Zjk3LWIyMTMtMzY1ZjM0NTNjZGUwIiwiaWF0IjoxNzI1MTc3NzAzLCJleHAiOjE3MjUxNzk1MDMsImlhdCI6MTcyNTE3NzcwNiwiZXhwIjoxNzI1MTc5NTA2fQ.7IY-CHlAEl5shkUM5nc6Rqs7a2K7Z_hOalhZCXc-eis",
                        "bm_sv": "BB414D98D7A4A64047D1EF7A11EA5839~YAAQ7C43F8Es4ZmRAQAALrearBg336W8W8dQAbwbVlXdupKSTe/bTqDyZ3IgBVy9N6j2KXFyEawbomySmvqEqFNsKNHcHhuB8vzjXLPNzS3Hy0wMniHtFyAuW9QiWSRYYSOPhY8EEtABlxdJHjdh8o7NoyrDxUeYkzq5pJ0qjPA4eRQoLooOZu/0X8IZjffDiX3jGHhwUSce4M9t4zY9EKyi+YK2HGHHSM+k40klqgC4h4NQqVacDFqnMiTUDw==~1",
                        "__gads": "ID=ee686904e151e73b:T=1725096903:RT=1725177706:S=ALNI_MY9WqZ1QTrAo-sThXSG8QxNUIJ1eQ",
                        "__gpi": "UID=00000ee56d78bee9:T=1725096903:RT=1725177706:S=ALNI_MZwL1hrOKg299M4OoInvvzqvV_rWw",
                        "__eoi": "ID=f830e4feacca434c:T=1725096903:RT=1725177706:S=AA-AfjYD9aaYS91FTK1By-bCp350",
                        "rxvt": "1725179504409|1725174727294",
                        "dtPC": "32$177699484_264h-vDJUIKMCPPGWHAPGFSPUFOMGAMHUIJPRA-0e0",
                        "RT": "\"z=1&dm=att.com&si=db6fd5a5-6827-4f75-a74d-a6f372f3d90c&ss=m0ja9dbg&sl=1&tt=3o6&bcn=%2F%2F684d0d46.akstat.io%2F&ld=4g8\"",
                        "invoca_session": "%7B%22ttl%22%3A%222024-09-15T08%3A01%3A48.434Z%22%2C%22session%22%3A%7B%22invoca_id%22%3A%22i-0ff430f3-d2b6-41b1-fd64-6ee46b2223e4%22%7D%2C%22config%22%3A%7B%22ce%22%3Atrue%2C%22fv%22%3Afalse%2C%22rn%22%3Afalse%2C%22ba%22%3Atrue%2C%22br%22%3Atrue%7D%7D",
                        "dtCookie": "v_4_srv_32_sn_F0CF0054AB4D90BC81C6B57C13E6A152_app-3A1165dc181cbe6399_1_app-3A7e91229232cd3329_1_ol_0_perc_100000_mul_1"
                    }
        
                    response = requests.get(config_url, headers=headers, cookies=cookies, proxies=proxies)
                    obj3 = re.compile('"emailexpiredLabel":"(?P<emailexpiredLabel>.*?)",')
                    # print(response.text)
                    # print(response)
                    print(obj3.findall(response.text)[0])
                    # 输出确认的结果
        
                    url = "https://api.rurl.vip/mail/get"
        
                    params = {
                        "user": "318258885",
                        "token": "342b29f569914a77dbdc2923b5dbacb1cd12eeb1",
                        "receiver": str(email),  # 用邮箱账号即可收取信息,
                        "subject": "Heads up! We approved your unlock request.",
                        "type": "html"
                    }
        
                    result = requests.get(url, params=params, proxies=proxies)
                    # json_data=result.json()
                    obj5 = re.compile("""<pre>(?P<zhuti>.*?)Hi Cher""", re.DOTALL)
                    # print(result.text)
                    if "Let's get your device unlocked" in result.text:
                        print("unlock 已解锁")
                        result_t = "unlock 已解锁"
                    else:
                        p1 = obj5.finditer(result.text)
                        for i in p1:
                            # print(i.group('zhuti'))
                            res = i.group('zhuti')
                            second_line = res.strip().strip('').strip(' ').split('\n')
                            non_blank_lines = [line for line in second_line if line.strip()]
                            print(fanyi(non_blank_lines))  # 剔除后的结果
                            result_t = fanyi(non_blank_lines)
        
                    print(IMEI_ID,result_t)
        
                    pass
                    put_order(IMEI_ID,result_t)
                    # 这里写上传数据到服务器的逻辑
                    print("上传完成")
                    return [IMEI_ID,result_t]
                    break
                    # 上传完成则break
                except Exception as e:
                    print("未收到邮件")
                time.sleep(105)
        
            #
        
        results=[]
        executor = ThreadPoolExecutor(max_workers=100)
        
        
            
        loop_index = -1
        while True:
            loop_index += 1
            try:
                list = xbot_visual.programing.variable(value=lambda: []
                , _block=("main", 12, "设置变量"))
                list1 = xbot_visual.programing.variable(value=lambda: []
                , _block=("main", 13, "设置变量"))
                # programing.variable
                results = xbot_visual.programing.variable(value=lambda: []
                , _block=("main", 15, "设置变量"))
                import time
                import requests
                import re
                import lxml
                session = requests.Session()
                headers = {
                    "Accept": "text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.7",
                    "Accept-Language": "zh-CN,zh;q=0.9",
                    "Cache-Control": "no-cache",
                    "Connection": "keep-alive",
                    "Content-Type": "application/x-www-form-urlencoded",
                    "Origin": "http://xgkj.163wx.cn",
                    "Pragma": "no-cache",
                    "Referer": "http://xgkj.163wx.cn/admincp/codes.php?codeStatusId=1&searchType=2&uId=0",
                    "Upgrade-Insecure-Requests": "1",
                    "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/127.0.0.0 Safari/537.36 Edg/127.0.0.0"
                }
                cookies = {
                    "intro_show": "1",
                    "PHPSESSID": "ls8f72ofr3sbdgp540l2g62iae",
                    "SITE_LANGUAGE": "cn"
                }
                url = "http://xgkj.163wx.cn/admincp/codes.php"
                data = {
                    "bulk": "0",
                    "uId": "0",
                    "selectAll": "0",
                    "page": "1",
                    "cldFrm": "0",
                    "searchType": "2",
                    "hdsbmt": "",
                    "blkimeis": "",
                    "orderId": "",
                    "startDate": "",
                    "endDate": "",
                    "updateStartDate": "",
                    "updateEndDate": "",
                    "sort": "CodeId",
                    "sortType": "desc",
                    "packageId": "3868",#订单分组编号
                    "records": "50",
                    "codeStatusId": "1",
                    "txtUName": "",
                    "codeDesc": ""
                }
                response = session.post(url, headers=headers, cookies=cookies, data=data, verify=False)
                
                #print(response.text)
                # print(response)
                
                #获取提交订单的编号
                obj=re.compile(r"(?P<tr><tr>.*?</tr>)",re.DOTALL)
                obj2=re.compile(r'<input type="checkbox".*?value="(?P<ID>.*?)">',re.DOTALL)
                result=obj.finditer(response.text)
                # res=obj.findall(response.text)
                # count=len(res)
                list=[]
                for i in result:
                    tr = i.group("tr")
                    for i in obj2.finditer(tr):
                        if i.group("ID"):
                            print(i.group("ID"))
                            list.append(i.group("ID"))
                
                print(list)
                # 将新订单存入list
                # 遍历去接受订单
                
                if xbot_visual.workflow.test(operand1=lambda: len(list), operator=">=", operand2=lambda: 2, operator_options="{}", _block=("main", 17, "IF 条件")):
                    xbot_visual.programing.log(type="info", text=list, _block=("main", 18, "打印日志"))
                #endif
                list = xbot_visual.programing.variable(value=lambda: list+list1
                , _block=("main", 20, "设置变量"))
                list1 = xbot_visual.programing.variable(value=lambda: []
                , _block=("main", 21, "设置变量"))
                import requests
                
                
                def fuck(IMEI):
                    headers = {
                        "Accept": "text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.7",
                        "Accept-Language": "zh-CN,zh;q=0.9",
                        "Cache-Control": "no-cache",
                        "Connection": "keep-alive",
                        "Content-Type": "application/x-www-form-urlencoded",
                        "Origin": "http://xgkj.163wx.cn",
                        "Pragma": "no-cache",
                        "Referer": "http://xgkj.163wx.cn/admincp/codes.php",
                        "Upgrade-Insecure-Requests": "1",
                        "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/127.0.0.0 Safari/537.36 Edg/127.0.0.0"
                    }
                    cookies = {
                        "intro_show": "1",
                        "CD14Bck[cd14bckUName]": "admin",
                        "CD14Bck[cd14bckUPwd]": "qqW1511344",
                        "PHPSESSID": "ls8f72ofr3sbdgp540l2g62iae",
                        "SITE_LANGUAGE": "cn"
                    }
                    url = "http://xgkj.163wx.cn/admincp/codes.php"
                    data = {
                        "bulk": "0",
                        "uId": "0",
                        "selectAll": "0",
                        "page": "1",
                        "cldFrm": "9",
                        "searchType": "0",
                        "hdsbmt": "",
                        "blkimeis": "",
                        "orderId": "",
                        "startDate": "",
                        "endDate": "",
                        "updateStartDate": "",
                        "updateEndDate": "",
                        "sort": "CodeId",
                        "sortType": "desc",
                        "packageId": "3868",
                        "records": "50",
                        "codeStatusId": "4",
                        "txtUName": "",
                        "codeDesc": "",
                        "chkCodes[]": IMEI
                    }
                    response = requests.post(url, headers=headers, cookies=cookies, data=data, verify=False)
                
                    print(response.text)
                    print(response)
                
                import datetime
                import re
                
                import requests
                
                
                headers = {
                    "Accept": "text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.7",
                    "Accept-Language": "zh-CN,zh;q=0.9",
                    "Cache-Control": "no-cache",
                    "Connection": "keep-alive",
                    "Content-Type": "application/x-www-form-urlencoded",
                    "Origin": "http://xgkj.163wx.cn",
                    "Pragma": "no-cache",
                    "Referer": "http://xgkj.163wx.cn/admincp/codes.php",
                    "Upgrade-Insecure-Requests": "1",
                    "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/127.0.0.0 Safari/537.36 Edg/127.0.0.0"
                }
                cookies = {
                    "intro_show": "1",
                    "CD14Bck[cd14bckUName]": "admin",
                    "CD14Bck[cd14bckUPwd]": "qqW1511344",
                    "PHPSESSID": "ls8f72ofr3sbdgp540l2g62iae",
                    "SITE_LANGUAGE": "cn"
                }
                url = "http://xgkj.163wx.cn/admincp/codes.php"
                data = {
                    "bulk": "0",
                    "uId": "0",
                    "selectAll": "0",
                    "page": "1",
                    "cldFrm": "0",
                    "searchType": "0",
                    "hdsbmt": "",
                    "blkimeis": "",
                    "orderId": "",
                    "startDate": "",
                    "endDate": "",
                    "updateStartDate": "",
                    "updateEndDate": "",
                    "sort": "CodeId",
                    "sortType": "desc",
                    "packageId": "3868",
                    "records": "50",
                    "codeStatusId": "4",
                    "txtUName": "",
                    "codeDesc": ""
                }
                response = requests.post(url, headers=headers, cookies=cookies, data=data, verify=False)
                
                #print(response.text)
                #print(response)
                #获取订单处理中的编号
                obj=re.compile(r"(?P<tr><tr>.*?</tr>)",re.DOTALL)
                obj2=re.compile(r'(?P<start>2024-.*?)</td>.*?<input type="checkbox".*?value="(?P<ID>.*?)">',re.DOTALL)
                result2=obj.finditer(response.text)
                obj3=re.compile("(?P<start>2024-.*?)</td>",re.DOTALL)
                # res=obj.findall(response.text)
                # count=len(res)
                
                for i in result2:
                    tr = i.group("tr")
                    for i in obj2.finditer(tr):
                        print(i.group("ID"))
                        IMEI1=i.group("ID")
                        print(i.group("start").replace(" ",""))
                        start_time=i.group("start").replace("  ","").split("|")[0]
                        last_time = i.group("start").replace("  ", "").split("|")[1]
                        print(start_time,last_time)
                        print(int(last_time.split(":")[1]))
                        print(int(start_time.split(":")[1]))
                        from datetime import datetime
                
                        current_datetime = datetime.now()
                        # 格式化日期和时间，只显示到分钟
                        minute = current_datetime.minute
                
                        print(minute)  # 输出: 13
                
                        dt=(int(minute)-int(last_time.split(":")[1]))%60
                        print(dt)
                        if(dt>55):
                            fuck(IMEI1)
                
                
                
                
                xbot_visual.programing.log(type="info", text="清理30分钟还在处理中的代码", _block=("main", 23, "打印日志"))
                xbot_visual.programing.sleep(random_number=False, seconds="3", start_number="1", stop_number="5", _block=("main", 24, "等待"))
                headers = {
                    "Accept": "text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.7",
                    "Accept-Language": "zh-CN,zh;q=0.9",
                    "Cache-Control": "no-cache",
                    "Connection": "keep-alive",
                    "Content-Type": "application/x-www-form-urlencoded",
                    "Origin": "http://xgkj.163wx.cn",
                    "Pragma": "no-cache",
                    "Referer": "http://xgkj.163wx.cn/admincp/codes.php?codeStatusId=1&searchType=2&uId=0",
                    "Upgrade-Insecure-Requests": "1",
                    "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/127.0.0.0 Safari/537.36 Edg/127.0.0.0"
                }
                cookies = {
                    "intro_show": "1",
                    "PHPSESSID": "ls8f72ofr3sbdgp540l2g62iae",
                    "SITE_LANGUAGE": "cn"
                }
                url = "http://xgkj.163wx.cn/admincp/codes.php"
                data = {
                    "bulk": "0",
                    "uId": "0",
                    "selectAll": "0",
                    "page": "1",
                    "cldFrm": "4",
                    "searchType": "2",
                    "hdsbmt": "",
                    "blkimeis": "",
                    "orderId": "",
                    "startDate": "",
                    "endDate": "",
                    "updateStartDate": "",
                    "updateEndDate": "",
                    "sort": "CodeId",
                    "sortType": "desc",
                    "packageId": "0",
                    "records": "50",
                    "codeStatusId": "1",
                    "txtUName": "",
                    "codeDesc": "",
                    "chkSelect": "true",
                    "chkCodes[]": list   #loop_item2是一个一个改为处理中
                }
                response = requests.post(url, headers=headers, cookies=cookies, data=data, verify=False)
                #清理这批IMEI
                
                for loop_item2 in xbot_visual.workflow.list_iterator(list=list, loop_start_index="1", loop_end_index="-1", output_with_index=False, _block=("main", 26, "ForEach列表循环")):
                    try:
                        web_page2 = xbot_visual.web.create(web_type="edge", value="edge://settings/siteData?searchSubpage=https%3A%2F%2Fwww.att.com", silent_running=False, wait_load_completed=True, load_timeout="20", stop_load_if_load_timeout="handleExcept", chrome_file_name=None, edge_file_name=None, ie_file_name=None, bro360_file_name=None, firefox_file_name=None, arguments=None, _block=("main", 28, "打开网页"))
                        try:
                            xbot_visual.image.click(window_kind="currentactivatewindow", window="", template_images=[package.image_selector("图像"),package.image_selector("图像3")], anchor_type="center", sudoku_part="MiddleCenter", offset_x="0", offset_y="0", clicks="click", button="left", keys="null", move_mouse=True, timeout="15", delay_after="1", _block=("main", 29, "点击图像"))
                        except Exception as e:
                            xbot_visual.programing.log(type='info',text=e,_block=("main", 29,"点击图像"))
                        # programing.sleep
                        try:
                            xbot_visual.image.click(window_kind="currentactivatewindow", window="", template_images=[package.image_selector("图像2"),package.image_selector("图像4")], anchor_type="center", sudoku_part="MiddleCenter", offset_x="0", offset_y="0", clicks="click", button="left", keys="null", move_mouse=True, timeout="15", delay_after="1", _block=("main", 31, "点击图像"))
                        except Exception as e:
                            xbot_visual.programing.log(type='info',text=e,_block=("main", 31,"点击图像"))
                        # programing.sleep
                        xbot_visual.web.browser.close(operation="close_specified", browser=web_page2, web_type="cef", task_kill=False, _block=("main", 33, "关闭网页"))
                        xbot_visual.programing.log(type="info", text=loop_item2, _block=("main", 34, "打印日志"))
                        splited_list = xbot_visual.text.split_text_to_list(text_to_split=loop_item2, delimiter_way="custom", standard_delimiter="space", num_standard_delimiter="1", custom_delimiter="|", is_regular_expression=False, remove_empty=False, _block=("main", 35, "文本分割成列表"))
                        xbot_visual.programing.log(type="info", text=splited_list, _block=("main", 36, "打印日志"))
                        # text.sub_text
                        IMEI = xbot_visual.programing.variable(value=lambda: splited_list[3]
                        , _block=("main", 38, "设置变量"))
                        # programing.databook.read_data_from_workbook
                        # programing.databook.read_data_from_workbook
                        zhanghao = xbot_visual.excel.read_data_from_workbook(workbook=IMEI邮箱账号, read_way="cell", range=None, cell_row_num=lambda: zhanghao_count%1000, cell_column_name="1", area_begin_row_num=None, area_begin_column_name=None, area_end_row_num=None, area_end_column_name=None, row_row_num=None, get_display_text=False, has_header_row=False, column_column_name=None, sheet_name="", using_text=False, text_cols="", clear_space=False, _block=("main", 41, "读取Excel内容"))
                        mima = xbot_visual.excel.read_data_from_workbook(workbook=IMEI邮箱账号, read_way="cell", range=None, cell_row_num=lambda: zhanghao_count%1000, cell_column_name="2", area_begin_row_num=None, area_begin_column_name=None, area_end_row_num=None, area_end_column_name=None, row_row_num=None, get_display_text=False, has_header_row=False, column_column_name=None, sheet_name="", using_text=False, text_cols="", clear_space=False, _block=("main", 42, "读取Excel内容"))
                        web_page0 = xbot_visual.web.create(web_type="edge", value="https://www.att.com/deviceunlock/", silent_running=False, wait_load_completed=True, load_timeout="20", stop_load_if_load_timeout="handleExcept", chrome_file_name=None, edge_file_name=None, ie_file_name=None, bro360_file_name=None, firefox_file_name=None, arguments=None, _block=("main", 43, "打开网页"))
                        try:
                            xbot_visual.web.element.click(browser=web_page0, element=package.selector("按钮_fsrFocusFirst"), simulate=True, move_mouse=False, clicks="click", button="left", keys="null", delay_after="1", anchor_type="center", sudoku_part="MiddleCenter", offset_x="0", offset_y="0", timeout="6", _block=("main", 44, "点击元素(web)"))
                        except Exception as e:
                            xbot_visual.programing.log(type='info',text=e,_block=("main", 44,"点击元素(web)"))
                        xbot_visual.web.element.click(browser=web_page0, element=package.selector("启动解锁请求"), simulate=True, move_mouse=False, clicks="click", button="left", keys="null", delay_after="3", anchor_type="center", sudoku_part="MiddleCenter", offset_x="0", offset_y="0", timeout="20", _block=("main", 45, "点击元素(web)"))
                        xbot_visual.programing.sleep(random_number=False, seconds="3", start_number="1", stop_number="5", _block=("main", 46, "等待"))
                        for _xbot_retry_time in range(4):
                            try:
                                web_page = xbot_visual.web.get(web_type="edge", mode="activated", value="", use_wildcard=False, silent_running=False, wait_load_completed=True, load_timeout="20", stop_load_if_load_timeout="handleExcept", open_page=False, url=None, _block=("main", 47, "获取已打开的网页对象"))
                                break
                            except Exception as e:
                                if _xbot_retry_time == 3:
                                    raise e
                                else:
                                    xbot_visual.programing.log(type='info',text=e,_block=("main", 47,"获取已打开的网页对象"))
                            time.sleep(3)
                        # web.element.click
                        try:
                            xbot_visual.web.element.click(browser=web_page, element=package.selector("单选按钮_Do you have a mobile number from ATT?_1"), simulate=True, move_mouse=False, clicks="click", button="left", keys="null", delay_after="1", anchor_type="center", sudoku_part="MiddleCenter", offset_x="0", offset_y="0", timeout="20", _block=("main", 49, "点击元素(web)"))
                        except Exception as e:
                            xbot_visual.programing.log(type='info',text=e,_block=("main", 49,"点击元素(web)"))
                        xbot_visual.web.element.input(browser=web_page, element=package.selector("输入框_imeino"), text=IMEI, append=False, simulate=True, driver_input=False, save_to_clipboard=False, input_type="simulate", contains_hotkey=False, force_ime_ENG=False, send_key_delay="50", focus_timeout="1000", delay_after="1", click_before_input=True, anchor_type="center", sudoku_part="MiddleCenter", offset_x="0", offset_y="0", timeout="20", _block=("main", 50, "填写输入框(web)"))
                        xbot_visual.programing.sleep(random_number=False, seconds="3", start_number="1", stop_number="5", _block=("main", 51, "等待"))
                        try:
                            error_innerText = xbot_visual.web.element.get_details(browser=web_page, element=package.selector("您尝试解锁设备的次数过多。请在..."), operation="text", absolute_url=False, attribute_name=None, relative_to="screen", to96dpi=True, timeout="8", _block=("main", 52, "获取元素信息(web)"))
                        except Exception as e:
                            xbot_visual.programing.log(type='info',text=e,_block=("main", 52,"获取元素信息(web)"))
                            error_innerText = 0
                        # programing.snippet
                        xbot_visual.programing.log(type="info", text=error_innerText, _block=("main", 54, "打印日志"))
                        if xbot_visual.workflow.test(operand1=error_innerText, operator="==", operand2="0", operator_options="{}", _block=("main", 55, "IF 条件")):
                            xbot_visual.programing.log(type="info", text="第一阶段没出错，进入填写邮箱阶段", _block=("main", 56, "打印日志"))
                            xbot_visual.web.element.click(browser=web_page, element=package.selector("复选框_1521c20f-2d4b-abe8-1678-fd0244287652"), simulate=True, move_mouse=False, clicks="click", button="left", keys="null", delay_after="1", anchor_type="center", sudoku_part="MiddleCenter", offset_x="0", offset_y="0", timeout="20", _block=("main", 57, "点击元素(web)"))
                            xbot_visual.programing.sleep(random_number=False, seconds="5", start_number="1", stop_number="5", _block=("main", 58, "等待"))
                            xbot_visual.web.element.click(browser=web_page, element=package.selector("下一个"), simulate=True, move_mouse=False, clicks="click", button="left", keys="null", delay_after="1", anchor_type="center", sudoku_part="MiddleCenter", offset_x="0", offset_y="0", timeout="20", _block=("main", 59, "点击元素(web)"))
                            xbot_visual.programing.sleep(random_number=False, seconds="5", start_number="1", stop_number="5", _block=("main", 60, "等待"))
                            # web.element.click
                            # programing.sleep
                            try:
                                error_innerText = xbot_visual.web.element.get_details(browser=web_page, element=package.selector("您尝试解锁设备的次数过多。请在..."), operation="text", absolute_url=False, attribute_name=None, relative_to="screen", to96dpi=True, timeout="6", _block=("main", 63, "获取元素信息(web)"))
                            except Exception as e:
                                xbot_visual.programing.log(type='info',text=e,_block=("main", 63,"获取元素信息(web)"))
                                error_innerText = 0
                            if xbot_visual.workflow.test(operand1=error_innerText, operator="==", operand2="0", operator_options="{}", _block=("main", 64, "IF 条件")):
                                # programing.sleep
                                # web.element.click
                                cher = xbot_visual.process.run(process="xbot_extensions.shadowbot_text_new.process13", package=__name__, inputs={
                                    "字符串长度": "6",
                                    "包含汉字": False,
                                    "包含大写字母": True,
                                    "包含小写字母": True,
                                    "包含数字": False,
                                    "包含特殊字符": False,
                                    }, outputs=[
                                    "随机字符串",
                                ], _block=("main", 67, "生成随机字符串"))
                                name = xbot_visual.process.run(process="xbot_extensions.shadowbot_text_new.process13", package=__name__, inputs={
                                    "字符串长度": "7",
                                    "包含汉字": False,
                                    "包含大写字母": True,
                                    "包含小写字母": True,
                                    "包含数字": False,
                                    "包含特殊字符": False,
                                    }, outputs=[
                                    "随机字符串",
                                ], _block=("main", 68, "生成随机字符串"))
                                xbot_visual.web.element.input(browser=web_page, element=package.selector("名字"), text=cher, append=False, simulate=True, driver_input=False, save_to_clipboard=False, input_type="simulate", contains_hotkey=False, force_ime_ENG=False, send_key_delay="50", focus_timeout="1000", delay_after="1", click_before_input=True, anchor_type="center", sudoku_part="MiddleCenter", offset_x="0", offset_y="0", timeout="20", _block=("main", 69, "填写输入框(web)"))
                                xbot_visual.web.element.input(browser=web_page, element=package.selector("姓"), text=name, append=False, simulate=True, driver_input=False, save_to_clipboard=False, input_type="simulate", contains_hotkey=False, force_ime_ENG=False, send_key_delay="50", focus_timeout="1000", delay_after="1", click_before_input=True, anchor_type="center", sudoku_part="MiddleCenter", offset_x="0", offset_y="0", timeout="20", _block=("main", 70, "填写输入框(web)"))
                                xbot_visual.web.element.input(browser=web_page, element=package.selector("邮箱地址"), text=zhanghao, append=False, simulate=False, driver_input=False, save_to_clipboard=True, input_type="clipboard", contains_hotkey=False, force_ime_ENG=False, send_key_delay="50", focus_timeout="1000", delay_after="1", click_before_input=True, anchor_type="center", sudoku_part="MiddleCenter", offset_x="0", offset_y="0", timeout="20", _block=("main", 71, "填写输入框(web)"))
                                xbot_visual.web.element.input(browser=web_page, element=package.selector("确认邮箱"), text=zhanghao, append=False, simulate=False, driver_input=False, save_to_clipboard=True, input_type="clipboard", contains_hotkey=False, force_ime_ENG=False, send_key_delay="50", focus_timeout="1000", delay_after="1", click_before_input=True, anchor_type="center", sudoku_part="MiddleCenter", offset_x="0", offset_y="0", timeout="20", _block=("main", 72, "填写输入框(web)"))
                                for loop_index2 in xbot_visual.workflow.range_iterator(start="0", stop="10", step="1", _block=("main", 73, "For次数循环")):
                                    email_value = xbot_visual.web.element.get_details(browser=web_page, element=package.selector("输入框_confirm_email_addr"), operation="other", absolute_url=False, attribute_name="value", relative_to="screen", to96dpi=True, timeout="20", _block=("main", 74, "获取元素信息(web)"))
                                    if xbot_visual.workflow.test(operand1=email_value, operator="!=", operand2=zhanghao, operator_options="{}", _block=("main", 75, "IF 条件")):
                                        xbot_visual.web.element.input(browser=web_page, element=package.selector("确认邮箱"), text=zhanghao, append=False, simulate=False, driver_input=False, save_to_clipboard=True, input_type="clipboard", contains_hotkey=False, force_ime_ENG=False, send_key_delay="50", focus_timeout="1000", delay_after="1", click_before_input=True, anchor_type="center", sudoku_part="MiddleCenter", offset_x="0", offset_y="0", timeout="20", _block=("main", 76, "填写输入框(web)"))
                                    else:
                                        break
                                    #endif
                                #endloop
                                xbot_visual.programing.log(type="info", text=zhanghao, _block=("main", 81, "打印日志"))
                                xbot_visual.programing.log(type="info", text=zhanghao_count, _block=("main", 82, "打印日志"))
                                xbot_visual.web.element.click(browser=web_page, element=package.selector("提交"), simulate=True, move_mouse=False, clicks="click", button="left", keys="null", delay_after="1", anchor_type="center", sudoku_part="MiddleCenter", offset_x="0", offset_y="0", timeout="20", _block=("main", 83, "点击元素(web)"))
                                xbot_visual.programing.sleep(random_number=False, seconds="5", start_number="1", stop_number="5", _block=("main", 84, "等待"))
                                try:
                                    error2_innerText = xbot_visual.web.element.get_details(browser=web_page, element=package.selector("块元素"), operation="text", absolute_url=False, attribute_name=None, relative_to="screen", to96dpi=True, timeout="10", _block=("main", 85, "获取元素信息(web)"))
                                except Exception as e:
                                    xbot_visual.programing.log(type='info',text=e,_block=("main", 85,"获取元素信息(web)"))
                                    error2_innerText = 0
                                # programing.snippet
                                if xbot_visual.workflow.test(operand1=error2_innerText, operator="==", operand2="0", operator_options="{}", _block=("main", 87, "IF 条件")):
                                    xbot_visual.programing.log(type="info", text="第二页面没出错，进入邮箱读取阶段", _block=("main", 88, "打印日志"))
                                    zhanghao_count=zhanghao_count+1
                                    xbot_visual.process.run(process="xbot_extensions.activity_b354cbb0.main", package=__name__, inputs={
                                        "流程名": "处理邮箱确认及返回数据",
                                        "流程参数": lambda: {"loop_item2":loop_item2,"zhanghao":zhanghao},
                                        "daemon": True,
                                        }, outputs=[
                                    ], _block=("main", 90, "并发调用子流程"))
                                    xbot_visual.programing.log(type="info", text=xbot_visual.sh_str(loop_item2) + xbot_visual.sh_str(zhanghao), _block=("main", 91, "打印日志"))
                                    # process.run
                                else:
                                    process_result2 = xbot_visual.process.run(process="process3", package=__name__, inputs={
                                        "error2_innerText": error2_innerText,
                                        }, outputs=[
                                        "error2_innerText",
                                    ], _block=("main", 94, "调用流程"))
                                    xbot_visual.programing.log(type="info", text="第二阶段出错", _block=("main", 95, "打印日志"))
                                    results.append([loop_item2,error2_innerText])
                                    if xbot_visual.workflow.test(operand1=error2_innerText, operator="not empty value", operand2="", operator_options="{\"values\":\"None,Empty,Blank\"}", _block=("main", 97, "IF 条件")):
                                        if xbot_visual.workflow.test(operand1=error2_innerText, operator="in", operand2="分期付款计划付清之前", operator_options="{\"ignoreCase\":\"True\"}", _block=("main", 98, "IF 条件")):
                                            error2_innerText = xbot_visual.programing.variable(value="解锁失败,此设备在ATT官方处于欠费状态"
                                            , _block=("main", 99, "设置变量"))
                                        #endif
                                        if xbot_visual.workflow.test(operand1=error2_innerText, operator="in", operand2="在购买后 60 天之前", operator_options="{\"ignoreCase\":\"True\"}", _block=("main", 101, "IF 条件")):
                                            error2_innerText = xbot_visual.programing.variable(value="解锁失败，设备活跃未满60天或者激活未满60天"
                                            , _block=("main", 102, "设置变量"))
                                        #endif
                                        if xbot_visual.workflow.test(operand1=error2_innerText, operator="in", operand2="在购买后 60 天之前", operator_options="{\"ignoreCase\":\"True\"}", _block=("main", 104, "IF 条件")):
                                            error2_innerText = xbot_visual.programing.variable(value="解锁失败，设备活跃未满60天或者激活未满60天"
                                            , _block=("main", 105, "设置变量"))
                                        #endif
                                        if xbot_visual.workflow.test(operand1=error2_innerText, operator="in", operand2="您尝试解锁设备的次数过多", operator_options="{\"ignoreCase\":\"True\"}", _block=("main", 107, "IF 条件")):
                                            error2_innerText = xbot_visual.programing.variable(value="此设备由于提交解锁次数过多已被ATT官方限制，建议等待24小时后重新提交"
                                            , _block=("main", 108, "设置变量"))
                                        #endif
                                        if xbot_visual.workflow.test(operand1=error2_innerText, operator="in", operand2="数据库中找不到", operator_options="{\"ignoreCase\":\"True\"}", _block=("main", 110, "IF 条件")):
                                            error2_innerText = xbot_visual.programing.variable(value="解锁失败，在ATT官方无数据状态或者不是ATT运营商"
                                            , _block=("main", 111, "设置变量"))
                                        #endif
                                        if xbot_visual.workflow.test(operand1=error2_innerText, operator="in", operand2="丢失或被盗", operator_options="{\"ignoreCase\":\"True\"}", _block=("main", 113, "IF 条件")):
                                            error2_innerText = xbot_visual.programing.variable(value="解锁失败，此设备在ATT官方处于黑名单状态"
                                            , _block=("main", 114, "设置变量"))
                                        #endif
                                        if xbot_visual.workflow.test(operand1=error2_innerText, operator="in", operand2="在购买后 60 天之前", operator_options="{\"ignoreCase\":\"True\"}", _block=("main", 116, "IF 条件")):
                                            error2_innerText = xbot_visual.programing.variable(value="解锁失败，设备活跃未满60天或者激活未满60天"
                                            , _block=("main", 117, "设置变量"))
                                        #endif
                                        if xbot_visual.workflow.test(operand1=error2_innerText, operator="in", operand2="我们已经在处理此设备的解锁请求", operator_options="{\"ignoreCase\":\"True\"}", _block=("main", 119, "IF 条件")):
                                            error2_innerText = xbot_visual.programing.variable(value="您的解锁请求，已存在ATT系统中"
                                            , _block=("main", 120, "设置变量"))
                                        #endif
                                        if xbot_visual.workflow.test(operand1=error2_innerText, operator="in", operand2="The account owner needs to remove the device from their account first. For assistance", operator_options="{\"ignoreCase\":\"True\"}", _block=("main", 122, "IF 条件")):
                                            error2_innerText = xbot_visual.programing.variable(value="解锁失败，此设备活跃在其他账户中"
                                            , _block=("main", 123, "设置变量"))
                                        #endif
                                        if xbot_visual.workflow.test(operand1=error2_innerText, operator="in", operand2="该设备仍处于合同期内。登录您的帐户以查看您的合同", operator_options="{\"ignoreCase\":\"True\"}", _block=("main", 125, "IF 条件")):
                                            error2_innerText = xbot_visual.programing.variable(value="解锁失败，因为该设备仍处于合同期内。"
                                            , _block=("main", 126, "设置变量"))
                                        #endif
                                        if xbot_visual.workflow.test(operand1=error2_innerText, operator="in", operand2="您想要解锁的设备在另一个AT&T账户上处于活动状态。账户所有者需要先从其账户中删除设备", operator_options="{\"ignoreCase\":\"True\"}", _block=("main", 128, "IF 条件")):
                                            error2_innerText = xbot_visual.programing.variable(value="解锁失败，此设备活跃在其它账户中"
                                            , _block=("main", 129, "设置变量"))
                                        #endif
                                        xbot_visual.programing.log(type="info", text=error2_innerText, _block=("main", 131, "打印日志"))
                                        if xbot_visual.workflow.test(operand1=error2_innerText, operator="in", operand2="技术", operator_options="{\"ignoreCase\":\"True\"}", _block=("main", 132, "IF 条件")):
                                            error2_innerText = xbot_visual.programing.variable(value="t"
                                            , _block=("main", 133, "设置变量"))
                                        #endif
                                        if xbot_visual.workflow.test(operand1=error2_innerText, operator="!=", operand2="t", operator_options="{}", _block=("main", 135, "IF 条件")):
                                            put_order(loop_item2,error2_innerText)
                                            print("提交订单")
                                        #endif
                                    #endif
                                    xbot_visual.programing.log(type="info", text="提交流程2的错误", _block=("main", 139, "打印日志"))
                                #endif
                            else:
                                results.append([loop_item2,error_innerText])
                                if xbot_visual.workflow.test(operand1=error_innerText, operator="not empty value", operand2="", operator_options="{\"values\":\"None,Empty,Blank\"}", _block=("main", 143, "IF 条件")):
                                    if xbot_visual.workflow.test(operand1=error_innerText, operator="in", operand2="在购买后 60 天之前", operator_options="{\"ignoreCase\":\"True\"}", _block=("main", 144, "IF 条件")):
                                        error_innerText = xbot_visual.programing.variable(value="解锁失败，设备活跃未满60天或者激活未满60天"
                                        , _block=("main", 145, "设置变量"))
                                    #endif
                                    if xbot_visual.workflow.test(operand1=error_innerText, operator="in", operand2="您尝试解锁设备的次数过多", operator_options="{\"ignoreCase\":\"True\"}", _block=("main", 147, "IF 条件")):
                                        error_innerText = xbot_visual.programing.variable(value="此设备由于提交解锁次数过多已被ATT官方限制，建议等待24小时后重新提交"
                                        , _block=("main", 148, "设置变量"))
                                    #endif
                                    if xbot_visual.workflow.test(operand1=error_innerText, operator="in", operand2="Looks like the IMEI number you entered doesn’t match an AT&T device.", operator_options="{\"ignoreCase\":\"True\"}", _block=("main", 150, "IF 条件")):
                                        error_innerText = xbot_visual.programing.variable(value="您的设备可能不是AT&T运营商，或者是官换机，请检查"
                                        , _block=("main", 151, "设置变量"))
                                    #endif
                                    if xbot_visual.workflow.test(operand1=error_innerText, operator="in", operand2="That IMEI number doesn't match any AT&T device. ", operator_options="{\"ignoreCase\":\"True\"}", _block=("main", 153, "IF 条件")):
                                        error_innerText = xbot_visual.programing.variable(value="您的设备可能不是AT&T运营商，或者是官换机，请检查\r\n"
                                        , _block=("main", 154, "设置变量"))
                                    #endif
                                    if xbot_visual.workflow.test(operand1=error_innerText, operator="in", operand2="不匹配", operator_options="{\"ignoreCase\":\"True\"}", _block=("main", 156, "IF 条件")):
                                        error_innerText = xbot_visual.programing.variable(value="您的设备可能不是AT&T运营商，或者是官换机，请检查\r\n"
                                        , _block=("main", 157, "设置变量"))
                                    #endif
                                    if xbot_visual.workflow.test(operand1=error_innerText, operator="in", operand2="We can't unlock your device until 60 days post-purchase.", operator_options="{\"ignoreCase\":\"True\"}", _block=("main", 159, "IF 条件")):
                                        error_innerText = xbot_visual.programing.variable(value="解锁失败，设备活跃未满60天或者激活未满60天"
                                        , _block=("main", 160, "设置变量"))
                                    #endif
                                    if xbot_visual.workflow.test(operand1=error_innerText, operator="in", operand2="分期付款计划付清之前", operator_options="{\"ignoreCase\":\"True\"}", _block=("main", 162, "IF 条件")):
                                        error_innerText = xbot_visual.programing.variable(value="解锁失败,此设备在ATT官方处于欠费状态"
                                        , _block=("main", 163, "设置变量"))
                                    #endif
                                    if xbot_visual.workflow.test(operand1=error_innerText, operator="in", operand2="数据库中找不到", operator_options="{\"ignoreCase\":\"True\"}", _block=("main", 165, "IF 条件")):
                                        error_innerText = xbot_visual.programing.variable(value="解锁失败，在ATT官方无数据状态或者不是ATT运营商"
                                        , _block=("main", 166, "设置变量"))
                                    #endif
                                    if xbot_visual.workflow.test(operand1=error_innerText, operator="in", operand2="丢失或被盗", operator_options="{\"ignoreCase\":\"True\"}", _block=("main", 168, "IF 条件")):
                                        error_innerText = xbot_visual.programing.variable(value="解锁失败，此设备在ATT官方处于黑名单状态"
                                        , _block=("main", 169, "设置变量"))
                                    #endif
                                    xbot_visual.programing.log(type="info", text=error_innerText, _block=("main", 171, "打印日志"))
                                    if xbot_visual.workflow.test(operand1=error_innerText, operator="in", operand2="您尝试解锁设备的次数过多", operator_options="{\"ignoreCase\":\"True\"}", _block=("main", 172, "IF 条件")):
                                        error_innerText = xbot_visual.programing.variable(value="此设备由于提交解锁次数过多已被ATT官方限制，建议等待24小时后重新提交"
                                        , _block=("main", 173, "设置变量"))
                                    #endif
                                    if xbot_visual.workflow.test(operand1=error_innerText, operator="in", operand2="分期付款计划付清之前", operator_options="{\"ignoreCase\":\"True\"}", _block=("main", 175, "IF 条件")):
                                        error_innerText = xbot_visual.programing.variable(value="解锁失败,此设备在ATT官方处于欠费状态"
                                        , _block=("main", 176, "设置变量"))
                                    #endif
                                    if xbot_visual.workflow.test(operand1=error_innerText, operator="in", operand2="数据库中找不到", operator_options="{\"ignoreCase\":\"True\"}", _block=("main", 178, "IF 条件")):
                                        error_innerText = xbot_visual.programing.variable(value="解锁失败，在ATT官方无数据状态或者不是ATT运营商"
                                        , _block=("main", 179, "设置变量"))
                                    #endif
                                    if xbot_visual.workflow.test(operand1=error_innerText, operator="in", operand2="60天之前", operator_options="{\"ignoreCase\":\"True\"}", _block=("main", 181, "IF 条件")):
                                        error_innerText = xbot_visual.programing.variable(value="解锁失败，设备活跃未满60天或者激活未满60天"
                                        , _block=("main", 182, "设置变量"))
                                    #endif
                                    if xbot_visual.workflow.test(operand1=error_innerText, operator="in", operand2="丢失或被盗", operator_options="{\"ignoreCase\":\"True\"}", _block=("main", 184, "IF 条件")):
                                        error_innerText = xbot_visual.programing.variable(value="解锁失败，此设备在ATT官方处于黑名单状态"
                                        , _block=("main", 185, "设置变量"))
                                    #endif
                                    if xbot_visual.workflow.test(operand1=error_innerText, operator="in", operand2="我们已经在处理此设备的解锁请求", operator_options="{\"ignoreCase\":\"True\"}", _block=("main", 187, "IF 条件")):
                                        error_innerText = xbot_visual.programing.variable(value="您的解锁请求，已存在ATT系统中"
                                        , _block=("main", 188, "设置变量"))
                                    #endif
                                    if xbot_visual.workflow.test(operand1=error_innerText, operator="in", operand2="The account owner needs to remove the device from their account first. For assistance", operator_options="{\"ignoreCase\":\"True\"}", _block=("main", 190, "IF 条件")):
                                        error_innerText = xbot_visual.programing.variable(value="解锁失败，此设备活跃在其他账户中"
                                        , _block=("main", 191, "设置变量"))
                                    #endif
                                    if xbot_visual.workflow.test(operand1=error_innerText, operator="in", operand2="该设备仍处于合同期内。登录您的帐户以查看您的合同", operator_options="{\"ignoreCase\":\"True\"}", _block=("main", 193, "IF 条件")):
                                        error_innerText = xbot_visual.programing.variable(value="解锁失败，因为该设备仍处于合同期内。"
                                        , _block=("main", 194, "设置变量"))
                                    #endif
                                    if xbot_visual.workflow.test(operand1=error_innerText, operator="in", operand2="该设备仍处于合同期内。登录您的帐户以查看您的合同", operator_options="{\"ignoreCase\":\"True\"}", _block=("main", 196, "IF 条件")):
                                        error_innerText = xbot_visual.programing.variable(value="解锁失败，因为该设备仍处于合同期内。"
                                        , _block=("main", 197, "设置变量"))
                                    #endif
                                    if xbot_visual.workflow.test(operand1=error_innerText, operator="in", operand2="您想要解锁的设备在另一个AT&T账户上处于活动状态。账户所有者需要先从其账户中删除设备", operator_options="{\"ignoreCase\":\"True\"}", _block=("main", 199, "IF 条件")):
                                        error_innerText = xbot_visual.programing.variable(value="解锁失败，此设备活跃在其它账户中"
                                        , _block=("main", 200, "设置变量"))
                                    #endif
                                    xbot_visual.programing.log(type="info", text="流程出错", _block=("main", 202, "打印日志"))
                                    xbot_visual.programing.log(type="info", text=error_innerText, _block=("main", 203, "打印日志"))
                                    if xbot_visual.workflow.test(operand1=error_innerText, operator="in", operand2="技术", operator_options="{\"ignoreCase\":\"True\"}", _block=("main", 204, "IF 条件")):
                                        error_innerText = xbot_visual.programing.variable(value="t"
                                        , _block=("main", 205, "设置变量"))
                                    #endif
                                    if xbot_visual.workflow.test(operand1=error_innerText, operator="!=", operand2="t", operator_options="{}", _block=("main", 207, "IF 条件")):
                                        put_order(loop_item2,error_innerText)
                                        print("提交订单")
                                    #endif
                                else:
                                    xbot_visual.programing.log(type="info", text="错误信息为空", _block=("main", 211, "打印日志"))
                                #endif
                                xbot_visual.programing.log(type="info", text="第一步提交时出错", _block=("main", 213, "打印日志"))
                            #endif
                        else:
                            xbot_visual.programing.log(type="info", text="IMEI码出现错误", _block=("main", 216, "打印日志"))
                            results.append([loop_item2,error_innerText])
                            xbot_visual.programing.log(type="info", text=results, _block=("main", 218, "打印日志"))
                            if xbot_visual.workflow.test(operand1=error_innerText, operator="not empty value", operand2="", operator_options="{\"values\":\"None,Empty,Blank\"}", _block=("main", 219, "IF 条件")):
                                if xbot_visual.workflow.test(operand1=error_innerText, operator="in", operand2="在购买后 60 天之前", operator_options="{\"ignoreCase\":\"True\"}", _block=("main", 220, "IF 条件")):
                                    error_innerText = xbot_visual.programing.variable(value="解锁失败，设备活跃未满60天或者激活未满60天"
                                    , _block=("main", 221, "设置变量"))
                                #endif
                                if xbot_visual.workflow.test(operand1=error_innerText, operator="in", operand2="您尝试解锁设备的次数过多", operator_options="{\"ignoreCase\":\"True\"}", _block=("main", 223, "IF 条件")):
                                    error_innerText = xbot_visual.programing.variable(value="此设备由于提交解锁次数过多已被ATT官方限制，建议等待24小时后重新提交"
                                    , _block=("main", 224, "设置变量"))
                                #endif
                                if xbot_visual.workflow.test(operand1=error_innerText, operator="in", operand2="60天之前", operator_options="{\"ignoreCase\":\"True\"}", _block=("main", 226, "IF 条件")):
                                    error_innerText = xbot_visual.programing.variable(value="解锁失败，设备活跃未满60天或者激活未满60天"
                                    , _block=("main", 227, "设置变量"))
                                #endif
                                if xbot_visual.workflow.test(operand1=error_innerText, operator="in", operand2="Looks like the IMEI number you entered doesn’t match an AT&T device.", operator_options="{\"ignoreCase\":\"True\"}", _block=("main", 229, "IF 条件")):
                                    error_innerText = xbot_visual.programing.variable(value="您的设备可能不是AT&T运营商,或者是官换机,请检查"
                                    , _block=("main", 230, "设置变量"))
                                #endif
                                if xbot_visual.workflow.test(operand1=error_innerText, operator="in", operand2="That IMEI number doesn't match any AT&T device. ", operator_options="{\"ignoreCase\":\"True\"}", _block=("main", 232, "IF 条件")):
                                    error_innerText = xbot_visual.programing.variable(value="您的设备可能不是AT&T运营商,或者是官换机,请检查\r\n"
                                    , _block=("main", 233, "设置变量"))
                                #endif
                                if xbot_visual.workflow.test(operand1=error_innerText, operator="in", operand2="不匹配", operator_options="{\"ignoreCase\":\"True\"}", _block=("main", 235, "IF 条件")):
                                    error_innerText = xbot_visual.programing.variable(value="您的设备可能不是AT&T运营商,或者是官换机,请检查\r\n"
                                    , _block=("main", 236, "设置变量"))
                                #endif
                                if xbot_visual.workflow.test(operand1=error_innerText, operator="in", operand2="检查您的 IMEI 号码", operator_options="{\"ignoreCase\":\"True\"}", _block=("main", 238, "IF 条件")):
                                    error_innerText = xbot_visual.programing.variable(value="您的设备可能不是AT&T运营商,或者是官换机,请检查\r\n"
                                    , _block=("main", 239, "设置变量"))
                                #endif
                                if xbot_visual.workflow.test(operand1=error_innerText, operator="in", operand2="We can't unlock your device until 60 days post-purchase.", operator_options="{\"ignoreCase\":\"True\"}", _block=("main", 241, "IF 条件")):
                                    error_innerText = xbot_visual.programing.variable(value="解锁失败，设备活跃未满60天或者激活未满60天"
                                    , _block=("main", 242, "设置变量"))
                                #endif
                                if xbot_visual.workflow.test(operand1=error_innerText, operator="in", operand2="分期付款计划付清之前", operator_options="{\"ignoreCase\":\"True\"}", _block=("main", 244, "IF 条件")):
                                    error_innerText = xbot_visual.programing.variable(value="解锁失败,此设备在ATT官方处于欠费状态"
                                    , _block=("main", 245, "设置变量"))
                                #endif
                                if xbot_visual.workflow.test(operand1=error_innerText, operator="in", operand2="数据库中找不到", operator_options="{\"ignoreCase\":\"True\"}", _block=("main", 247, "IF 条件")):
                                    error_innerText = xbot_visual.programing.variable(value="解锁失败，在ATT官方无数据状态或者不是ATT运营商"
                                    , _block=("main", 248, "设置变量"))
                                #endif
                                if xbot_visual.workflow.test(operand1=error_innerText, operator="in", operand2="丢失或被盗", operator_options="{\"ignoreCase\":\"True\"}", _block=("main", 250, "IF 条件")):
                                    error_innerText = xbot_visual.programing.variable(value="解锁失败，此设备在ATT官方处于黑名单状态"
                                    , _block=("main", 251, "设置变量"))
                                #endif
                                if xbot_visual.workflow.test(operand1=error_innerText, operator="in", operand2="分期付款计划付清之前", operator_options="{\"ignoreCase\":\"True\"}", _block=("main", 253, "IF 条件")):
                                    error_innerText = xbot_visual.programing.variable(value="解锁失败,此设备在ATT官方处于欠费状态"
                                    , _block=("main", 254, "设置变量"))
                                #endif
                                if xbot_visual.workflow.test(operand1=error_innerText, operator="in", operand2="您尝试解锁设备的次数过多", operator_options="{\"ignoreCase\":\"True\"}", _block=("main", 256, "IF 条件")):
                                    error_innerText = xbot_visual.programing.variable(value="此设备由于提交解锁次数过多已被ATT官方限制，建议等待24小时后重新提交"
                                    , _block=("main", 257, "设置变量"))
                                #endif
                                if xbot_visual.workflow.test(operand1=error_innerText, operator="in", operand2="数据库中找不到", operator_options="{\"ignoreCase\":\"True\"}", _block=("main", 259, "IF 条件")):
                                    error_innerText = xbot_visual.programing.variable(value="解锁失败，在ATT官方无数据状态或者不是ATT运营商"
                                    , _block=("main", 260, "设置变量"))
                                #endif
                                if xbot_visual.workflow.test(operand1=error_innerText, operator="in", operand2="丢失或被盗", operator_options="{\"ignoreCase\":\"True\"}", _block=("main", 262, "IF 条件")):
                                    error_innerText = xbot_visual.programing.variable(value="解锁失败，此设备在ATT官方处于黑名单状态"
                                    , _block=("main", 263, "设置变量"))
                                #endif
                                xbot_visual.programing.log(type="info", text=error_innerText, _block=("main", 265, "打印日志"))
                                if xbot_visual.workflow.test(operand1=error_innerText, operator="in", operand2="技术", operator_options="{\"ignoreCase\":\"True\"}", _block=("main", 266, "IF 条件")):
                                    list1.append(loop_item2)
                                #endif
                                if xbot_visual.workflow.test(operand1=error_innerText, operator="in", operand2="我们已经在处理此设备的解锁请求", operator_options="{\"ignoreCase\":\"True\"}", _block=("main", 269, "IF 条件")):
                                    error_innerText = xbot_visual.programing.variable(value="您的解锁请求，已存在ATT系统中"
                                    , _block=("main", 270, "设置变量"))
                                #endif
                                if xbot_visual.workflow.test(operand1=error_innerText, operator="in", operand2="The account owner needs to remove the device from their account first. For assistance", operator_options="{\"ignoreCase\":\"True\"}", _block=("main", 272, "IF 条件")):
                                    error_innerText = xbot_visual.programing.variable(value="解锁失败，此设备活跃在其他账户中"
                                    , _block=("main", 273, "设置变量"))
                                #endif
                                if xbot_visual.workflow.test(operand1=error_innerText, operator="in", operand2="该设备仍处于合同期内。登录您的帐户以查看您的合同", operator_options="{\"ignoreCase\":\"True\"}", _block=("main", 275, "IF 条件")):
                                    error_innerText = xbot_visual.programing.variable(value="解锁失败，因为该设备仍处于合同期内。"
                                    , _block=("main", 276, "设置变量"))
                                #endif
                                if xbot_visual.workflow.test(operand1=error_innerText, operator="in", operand2="您想要解锁的设备在另一个AT&T账户上处于活动状态。账户所有者需要先从其账户中删除设备", operator_options="{\"ignoreCase\":\"True\"}", _block=("main", 278, "IF 条件")):
                                    error_innerText = xbot_visual.programing.variable(value="解锁失败，此设备活跃在其它账户中"
                                    , _block=("main", 279, "设置变量"))
                                #endif
                                if xbot_visual.workflow.test(operand1=error_innerText, operator="in", operand2="技术", operator_options="{\"ignoreCase\":\"True\"}", _block=("main", 281, "IF 条件")):
                                    error_innerText = xbot_visual.programing.variable(value="t"
                                    , _block=("main", 282, "设置变量"))
                                #endif
                                xbot_visual.programing.log(type="info", text=error_innerText, _block=("main", 284, "打印日志"))
                                if xbot_visual.workflow.test(operand1=error_innerText, operator="!=", operand2="t", operator_options="{}", _block=("main", 285, "IF 条件")):
                                    put_order(loop_item2,error_innerText)
                                    print("提交订单")
                                #endif
                            #endif
                            xbot_visual.programing.log(type="info", text=error_innerText, _block=("main", 289, "打印日志"))
                            xbot_visual.programing.log(type="info", text="提交流程1的错误", _block=("main", 290, "打印日志"))
                        #endif
                        databook_row_count = xbot_visual.programing.databook.get_row_count(_block=("main", 292, "读取数据表格总行数"))
                        xbot_visual.programing.databook.write_data_to_workbook(write_range="area", write_way="append", write_column_way="override", row_num=lambda: databook_row_count+1, column_name="1", begin_row_num="1", begin_column_name="", content=results, _block=("main", 293, "写入内容至数据表格"))
                        # programing.databook.write_data_to_workbook
                        xbot_visual.web.browser.close(operation="close_specified", browser=web_page, web_type="cef", task_kill=False, _block=("main", 295, "关闭网页"))
                    except Exception as exception:
                        exception = xbot_visual.trace(exception)
                        web_page2 = xbot_visual.web.create(web_type="edge", value="edge://settings/siteData?searchSubpage=https%3A%2F%2Fwww.att.com", silent_running=False, wait_load_completed=True, load_timeout="20", stop_load_if_load_timeout="handleExcept", chrome_file_name=None, edge_file_name=None, ie_file_name=None, bro360_file_name=None, firefox_file_name=None, arguments=None, _block=("main", 297, "打开网页"))
                        try:
                            xbot_visual.image.click(window_kind="currentactivatewindow", window="", template_images=[package.image_selector("图像"),package.image_selector("图像3")], anchor_type="center", sudoku_part="MiddleCenter", offset_x="0", offset_y="0", clicks="click", button="left", keys="null", move_mouse=True, timeout="15", delay_after="1", _block=("main", 298, "点击图像"))
                        except Exception as e:
                            xbot_visual.programing.log(type='info',text=e,_block=("main", 298,"点击图像"))
                        # programing.sleep
                        try:
                            xbot_visual.image.click(window_kind="currentactivatewindow", window="", template_images=[package.image_selector("图像2"),package.image_selector("图像4")], anchor_type="center", sudoku_part="MiddleCenter", offset_x="0", offset_y="0", clicks="click", button="left", keys="null", move_mouse=True, timeout="15", delay_after="1", _block=("main", 300, "点击图像"))
                        except Exception as e:
                            xbot_visual.programing.log(type='info',text=e,_block=("main", 300,"点击图像"))
                        # programing.sleep
                        xbot_visual.web.browser.close(operation="close_specified", browser=web_page2, web_type="cef", task_kill=False, _block=("main", 302, "关闭网页"))
                        xbot_visual.programing.log(type="info", text=loop_item2, _block=("main", 303, "打印日志"))
                        splited_list = xbot_visual.text.split_text_to_list(text_to_split=loop_item2, delimiter_way="custom", standard_delimiter="space", num_standard_delimiter="1", custom_delimiter="|", is_regular_expression=False, remove_empty=False, _block=("main", 304, "文本分割成列表"))
                        xbot_visual.programing.log(type="info", text=splited_list, _block=("main", 305, "打印日志"))
                        # text.sub_text
                        IMEI = xbot_visual.programing.variable(value=lambda: splited_list[3]
                        , _block=("main", 307, "设置变量"))
                        # programing.databook.read_data_from_workbook
                        # programing.databook.read_data_from_workbook
                        zhanghao = xbot_visual.excel.read_data_from_workbook(workbook=IMEI邮箱账号, read_way="cell", range=None, cell_row_num=lambda: zhanghao_count%1000, cell_column_name="1", area_begin_row_num=None, area_begin_column_name=None, area_end_row_num=None, area_end_column_name=None, row_row_num=None, get_display_text=False, has_header_row=False, column_column_name=None, sheet_name="", using_text=False, text_cols="", clear_space=False, _block=("main", 310, "读取Excel内容"))
                        mima = xbot_visual.excel.read_data_from_workbook(workbook=IMEI邮箱账号, read_way="cell", range=None, cell_row_num=lambda: zhanghao_count%1000, cell_column_name="2", area_begin_row_num=None, area_begin_column_name=None, area_end_row_num=None, area_end_column_name=None, row_row_num=None, get_display_text=False, has_header_row=False, column_column_name=None, sheet_name="", using_text=False, text_cols="", clear_space=False, _block=("main", 311, "读取Excel内容"))
                        web_page0 = xbot_visual.web.create(web_type="edge", value="https://www.att.com/deviceunlock/", silent_running=False, wait_load_completed=True, load_timeout="20", stop_load_if_load_timeout="handleExcept", chrome_file_name=None, edge_file_name=None, ie_file_name=None, bro360_file_name=None, firefox_file_name=None, arguments=None, _block=("main", 312, "打开网页"))
                        # web.element.click
                        xbot_visual.web.element.click(browser=web_page0, element=package.selector("启动解锁请求"), simulate=True, move_mouse=False, clicks="click", button="left", keys="null", delay_after="3", anchor_type="center", sudoku_part="MiddleCenter", offset_x="0", offset_y="0", timeout="20", _block=("main", 314, "点击元素(web)"))
                        xbot_visual.programing.sleep(random_number=False, seconds="3", start_number="1", stop_number="5", _block=("main", 315, "等待"))
                        for _xbot_retry_time in range(4):
                            try:
                                web_page = xbot_visual.web.get(web_type="edge", mode="activated", value="", use_wildcard=False, silent_running=False, wait_load_completed=True, load_timeout="20", stop_load_if_load_timeout="handleExcept", open_page=False, url=None, _block=("main", 316, "获取已打开的网页对象"))
                                break
                            except Exception as e:
                                if _xbot_retry_time == 3:
                                    raise e
                                else:
                                    xbot_visual.programing.log(type='info',text=e,_block=("main", 316,"获取已打开的网页对象"))
                            time.sleep(3)
                        # web.element.click
                        try:
                            xbot_visual.web.element.click(browser=web_page, element=package.selector("单选按钮_Do you have a mobile number from ATT?_1"), simulate=True, move_mouse=False, clicks="click", button="left", keys="null", delay_after="1", anchor_type="center", sudoku_part="MiddleCenter", offset_x="0", offset_y="0", timeout="20", _block=("main", 318, "点击元素(web)"))
                        except Exception as e:
                            xbot_visual.programing.log(type='info',text=e,_block=("main", 318,"点击元素(web)"))
                        xbot_visual.web.element.input(browser=web_page, element=package.selector("输入框_imeino"), text=IMEI, append=False, simulate=True, driver_input=False, save_to_clipboard=False, input_type="simulate", contains_hotkey=False, force_ime_ENG=False, send_key_delay="50", focus_timeout="1000", delay_after="1", click_before_input=True, anchor_type="center", sudoku_part="MiddleCenter", offset_x="0", offset_y="0", timeout="20", _block=("main", 319, "填写输入框(web)"))
                        xbot_visual.programing.sleep(random_number=False, seconds="5", start_number="1", stop_number="5", _block=("main", 320, "等待"))
                        try:
                            error_innerText = xbot_visual.web.element.get_details(browser=web_page, element=package.selector("您尝试解锁设备的次数过多。请在..."), operation="text", absolute_url=False, attribute_name=None, relative_to="screen", to96dpi=True, timeout="10", _block=("main", 321, "获取元素信息(web)"))
                        except Exception as e:
                            xbot_visual.programing.log(type='info',text=e,_block=("main", 321,"获取元素信息(web)"))
                            error_innerText = 0
                        # programing.snippet
                        xbot_visual.programing.log(type="info", text=error_innerText, _block=("main", 323, "打印日志"))
                        if xbot_visual.workflow.test(operand1=error_innerText, operator="==", operand2="0", operator_options="{}", _block=("main", 324, "IF 条件")):
                            xbot_visual.programing.log(type="info", text="第一阶段没出错，进入填写邮箱阶段", _block=("main", 325, "打印日志"))
                            xbot_visual.web.element.click(browser=web_page, element=package.selector("复选框_1521c20f-2d4b-abe8-1678-fd0244287652"), simulate=True, move_mouse=False, clicks="click", button="left", keys="null", delay_after="1", anchor_type="center", sudoku_part="MiddleCenter", offset_x="0", offset_y="0", timeout="20", _block=("main", 326, "点击元素(web)"))
                            xbot_visual.programing.sleep(random_number=False, seconds="5", start_number="1", stop_number="5", _block=("main", 327, "等待"))
                            xbot_visual.web.element.click(browser=web_page, element=package.selector("下一个"), simulate=True, move_mouse=False, clicks="click", button="left", keys="null", delay_after="1", anchor_type="center", sudoku_part="MiddleCenter", offset_x="0", offset_y="0", timeout="20", _block=("main", 328, "点击元素(web)"))
                            xbot_visual.programing.sleep(random_number=False, seconds="5", start_number="1", stop_number="5", _block=("main", 329, "等待"))
                            try:
                                xbot_visual.web.element.click(browser=web_page, element=package.selector("下一个"), simulate=True, move_mouse=False, clicks="click", button="left", keys="null", delay_after="1", anchor_type="center", sudoku_part="MiddleCenter", offset_x="0", offset_y="0", timeout="10", _block=("main", 330, "点击元素(web)"))
                            except Exception as e:
                                xbot_visual.programing.log(type='info',text=e,_block=("main", 330,"点击元素(web)"))
                            xbot_visual.programing.sleep(random_number=False, seconds="6", start_number="1", stop_number="5", _block=("main", 331, "等待"))
                            try:
                                error_innerText = xbot_visual.web.element.get_details(browser=web_page, element=package.selector("您尝试解锁设备的次数过多。请在..."), operation="text", absolute_url=False, attribute_name=None, relative_to="screen", to96dpi=True, timeout="6", _block=("main", 332, "获取元素信息(web)"))
                            except Exception as e:
                                xbot_visual.programing.log(type='info',text=e,_block=("main", 332,"获取元素信息(web)"))
                                error_innerText = 0
                            xbot_visual.programing.log(type="info", text=error_innerText, _block=("main", 333, "打印日志"))
                            if xbot_visual.workflow.test(operand1=error_innerText, operator="==", operand2="0", operator_options="{}", _block=("main", 334, "IF 条件")):
                                # programing.sleep
                                # web.element.click
                                cher = xbot_visual.process.run(process="xbot_extensions.shadowbot_text_new.process13", package=__name__, inputs={
                                    "字符串长度": "6",
                                    "包含汉字": False,
                                    "包含大写字母": True,
                                    "包含小写字母": True,
                                    "包含数字": False,
                                    "包含特殊字符": False,
                                    }, outputs=[
                                    "随机字符串",
                                ], _block=("main", 337, "生成随机字符串"))
                                name = xbot_visual.process.run(process="xbot_extensions.shadowbot_text_new.process13", package=__name__, inputs={
                                    "字符串长度": "7",
                                    "包含汉字": False,
                                    "包含大写字母": True,
                                    "包含小写字母": True,
                                    "包含数字": False,
                                    "包含特殊字符": False,
                                    }, outputs=[
                                    "随机字符串",
                                ], _block=("main", 338, "生成随机字符串"))
                                xbot_visual.web.element.input(browser=web_page, element=package.selector("名字"), text=cher, append=False, simulate=True, driver_input=False, save_to_clipboard=False, input_type="simulate", contains_hotkey=False, force_ime_ENG=False, send_key_delay="50", focus_timeout="1000", delay_after="1", click_before_input=True, anchor_type="center", sudoku_part="MiddleCenter", offset_x="0", offset_y="0", timeout="20", _block=("main", 339, "填写输入框(web)"))
                                xbot_visual.web.element.input(browser=web_page, element=package.selector("姓"), text=name, append=False, simulate=True, driver_input=False, save_to_clipboard=False, input_type="simulate", contains_hotkey=False, force_ime_ENG=False, send_key_delay="50", focus_timeout="1000", delay_after="1", click_before_input=True, anchor_type="center", sudoku_part="MiddleCenter", offset_x="0", offset_y="0", timeout="20", _block=("main", 340, "填写输入框(web)"))
                                xbot_visual.web.element.input(browser=web_page, element=package.selector("邮箱地址"), text=zhanghao, append=False, simulate=False, driver_input=False, save_to_clipboard=True, input_type="clipboard", contains_hotkey=False, force_ime_ENG=False, send_key_delay="50", focus_timeout="1000", delay_after="1", click_before_input=True, anchor_type="center", sudoku_part="MiddleCenter", offset_x="0", offset_y="0", timeout="20", _block=("main", 341, "填写输入框(web)"))
                                xbot_visual.web.element.input(browser=web_page, element=package.selector("确认邮箱"), text=zhanghao, append=False, simulate=False, driver_input=False, save_to_clipboard=True, input_type="clipboard", contains_hotkey=False, force_ime_ENG=False, send_key_delay="50", focus_timeout="1000", delay_after="1", click_before_input=True, anchor_type="center", sudoku_part="MiddleCenter", offset_x="0", offset_y="0", timeout="20", _block=("main", 342, "填写输入框(web)"))
                                for loop_index2 in xbot_visual.workflow.range_iterator(start="0", stop="10", step="1", _block=("main", 343, "For次数循环")):
                                    email_value = xbot_visual.web.element.get_details(browser=web_page, element=package.selector("输入框_confirm_email_addr"), operation="other", absolute_url=False, attribute_name="value", relative_to="screen", to96dpi=True, timeout="20", _block=("main", 344, "获取元素信息(web)"))
                                    if xbot_visual.workflow.test(operand1=email_value, operator="!=", operand2=zhanghao, operator_options="{}", _block=("main", 345, "IF 条件")):
                                        xbot_visual.web.element.input(browser=web_page, element=package.selector("确认邮箱"), text=zhanghao, append=False, simulate=False, driver_input=False, save_to_clipboard=True, input_type="clipboard", contains_hotkey=False, force_ime_ENG=False, send_key_delay="50", focus_timeout="1000", delay_after="1", click_before_input=True, anchor_type="center", sudoku_part="MiddleCenter", offset_x="0", offset_y="0", timeout="20", _block=("main", 346, "填写输入框(web)"))
                                    else:
                                        break
                                    #endif
                                #endloop
                                # programing.sleep
                                xbot_visual.programing.log(type="info", text=zhanghao, _block=("main", 352, "打印日志"))
                                xbot_visual.programing.log(type="info", text=zhanghao_count, _block=("main", 353, "打印日志"))
                                xbot_visual.web.element.click(browser=web_page, element=package.selector("提交"), simulate=True, move_mouse=False, clicks="click", button="left", keys="null", delay_after="1", anchor_type="center", sudoku_part="MiddleCenter", offset_x="0", offset_y="0", timeout="20", _block=("main", 354, "点击元素(web)"))
                                xbot_visual.programing.sleep(random_number=False, seconds="5", start_number="1", stop_number="5", _block=("main", 355, "等待"))
                                try:
                                    error2_innerText = xbot_visual.web.element.get_details(browser=web_page, element=package.selector("块元素"), operation="text", absolute_url=False, attribute_name=None, relative_to="screen", to96dpi=True, timeout="10", _block=("main", 356, "获取元素信息(web)"))
                                except Exception as e:
                                    xbot_visual.programing.log(type='info',text=e,_block=("main", 356,"获取元素信息(web)"))
                                    error2_innerText = 0
                                # programing.snippet
                                if xbot_visual.workflow.test(operand1=error2_innerText, operator="==", operand2="0", operator_options="{}", _block=("main", 358, "IF 条件")):
                                    xbot_visual.programing.log(type="info", text="第二页面没出错，进入邮箱读取阶段", _block=("main", 359, "打印日志"))
                                    zhanghao_count=zhanghao_count+1
                                    xbot_visual.process.run(process="xbot_extensions.activity_b354cbb0.main", package=__name__, inputs={
                                        "流程名": "处理邮箱确认及返回数据",
                                        "流程参数": lambda: {"loop_item2":loop_item2,"zhanghao":zhanghao},
                                        "daemon": True,
                                        }, outputs=[
                                    ], _block=("main", 361, "并发调用子流程"))
                                    xbot_visual.programing.log(type="info", text=xbot_visual.sh_str(loop_item2) + xbot_visual.sh_str(zhanghao), _block=("main", 362, "打印日志"))
                                    # process.run
                                else:
                                    if xbot_visual.workflow.test(operand1=error2_innerText, operator="in", operand2="欠费", operator_options="{\"ignoreCase\":\"True\"}", _block=("main", 365, "IF 条件")):
                                        error2_innerText = xbot_visual.programing.variable(value="解锁失败,此设备在ATT官方处于欠费状态"
                                        , _block=("main", 366, "设置变量"))
                                    #endif
                                    if xbot_visual.workflow.test(operand1=error2_innerText, operator="in", operand2="We can't unlock your device until 60 days post-purchase.", operator_options="{\"ignoreCase\":\"True\"}", _block=("main", 368, "IF 条件")):
                                        error2_innerText = xbot_visual.programing.variable(value="解锁失败，设备活跃未满60天或者激活未满60天"
                                        , _block=("main", 369, "设置变量"))
                                    #endif
                                    if xbot_visual.workflow.test(operand1=error2_innerText, operator="in", operand2="That IMEI number doesn't match any AT&T device.", operator_options="{\"ignoreCase\":\"True\"}", _block=("main", 371, "IF 条件")):
                                        error2_innerText = xbot_visual.programing.variable(value="您的设备可能不是AT&T运营商,或者是官换机,请检查\r\n"
                                        , _block=("main", 372, "设置变量"))
                                    #endif
                                    if xbot_visual.workflow.test(operand1=error2_innerText, operator="in", operand2="不匹配", operator_options="{\"ignoreCase\":\"True\"}", _block=("main", 374, "IF 条件")):
                                        error2_innerText = xbot_visual.programing.variable(value="您的设备可能不是AT&T运营商，或者是官换机，请检查"
                                        , _block=("main", 375, "设置变量"))
                                    #endif
                                    if xbot_visual.workflow.test(operand1=error2_innerText, operator="in", operand2="在购买后 60 天之前", operator_options="{\"ignoreCase\":\"True\"}", _block=("main", 377, "IF 条件")):
                                        error2_innerText = xbot_visual.programing.variable(value="解锁失败，设备活跃未满60天或者激活未满60天"
                                        , _block=("main", 378, "设置变量"))
                                    #endif
                                    if xbot_visual.workflow.test(operand1=error2_innerText, operator="in", operand2="Looks like the IMEI number you entered doesn’t match an AT&T device. ", operator_options="{\"ignoreCase\":\"True\"}", _block=("main", 380, "IF 条件")):
                                        error2_innerText = xbot_visual.programing.variable(value="您的设备可能不是AT&T运营商，或者是官换机，请检查\r\n"
                                        , _block=("main", 381, "设置变量"))
                                    #endif
                                    if xbot_visual.workflow.test(operand1=error2_innerText, operator="in", operand2="您尝试解锁设备的次数过多", operator_options="{\"ignoreCase\":\"True\"}", _block=("main", 383, "IF 条件")):
                                        error2_innerText = xbot_visual.programing.variable(value="此设备由于提交解锁次数过多已被ATT官方限制，建议等待24小时后重新提交"
                                        , _block=("main", 384, "设置变量"))
                                    #endif
                                    if xbot_visual.workflow.test(operand1=error2_innerText, operator="in", operand2="技术", operator_options="{\"ignoreCase\":\"True\"}", _block=("main", 386, "IF 条件")):
                                        list1.append(loop_item2)
                                    #endif
                                    if xbot_visual.workflow.test(operand1=error2_innerText, operator="in", operand2="We're already processing an unlock request for this device. Check your request status for more info. You’ll need your request number and IMEI", operator_options="{\"ignoreCase\":\"True\"}", _block=("main", 389, "IF 条件")):
                                        error2_innerText = xbot_visual.programing.variable(value="您的解锁请求，已存在ATT系统中"
                                        , _block=("main", 390, "设置变量"))
                                    #endif
                                    if xbot_visual.workflow.test(operand1=error2_innerText, operator="in", operand2="我们已经在处理此设备的解锁请求。", operator_options="{\"ignoreCase\":\"True\"}", _block=("main", 392, "IF 条件")):
                                        error2_innerText = xbot_visual.programing.variable(value="您的解锁请求，已存在ATT系统中"
                                        , _block=("main", 393, "设置变量"))
                                    #endif
                                    if xbot_visual.workflow.test(operand1=error2_innerText, operator="in", operand2="欠费", operator_options="{\"ignoreCase\":\"True\"}", _block=("main", 395, "IF 条件")):
                                        error2_innerText = xbot_visual.programing.variable(value="解锁失败,此设备在ATT官方处于欠费状态"
                                        , _block=("main", 396, "设置变量"))
                                    #endif
                                    if xbot_visual.workflow.test(operand1=error2_innerText, operator="in", operand2="您尝试解锁设备的次数过多", operator_options="{\"ignoreCase\":\"True\"}", _block=("main", 398, "IF 条件")):
                                        error2_innerText = xbot_visual.programing.variable(value="此设备由于提交解锁次数过多已被ATT官方限制，建议等待24小时后重新提交"
                                        , _block=("main", 399, "设置变量"))
                                    #endif
                                    if xbot_visual.workflow.test(operand1=error2_innerText, operator="in", operand2="技术", operator_options="{\"ignoreCase\":\"True\"}", _block=("main", 401, "IF 条件")):
                                        list1.append(loop_item2)
                                    #endif
                                    if xbot_visual.workflow.test(operand1=error2_innerText, operator="in", operand2="We're already processing an unlock request for this device. Check your request status for more info. You’ll need your request number and IMEI", operator_options="{\"ignoreCase\":\"True\"}", _block=("main", 404, "IF 条件")):
                                        error2_innerText = xbot_visual.programing.variable(value="您的解锁请求，已存在ATT系统中"
                                        , _block=("main", 405, "设置变量"))
                                    #endif
                                    if xbot_visual.workflow.test(operand1=error2_innerText, operator="in", operand2="我们已经在处理此设备的解锁请求。", operator_options="{\"ignoreCase\":\"True\"}", _block=("main", 407, "IF 条件")):
                                        error2_innerText = xbot_visual.programing.variable(value="您的解锁请求，已存在ATT系统中"
                                        , _block=("main", 408, "设置变量"))
                                    #endif
                                    if xbot_visual.workflow.test(operand1=error2_innerText, operator="in", operand2="在购买后 60 天之前", operator_options="{\"ignoreCase\":\"True\"}", _block=("main", 410, "IF 条件")):
                                        error2_innerText = xbot_visual.programing.variable(value="解锁失败，设备活跃未满60天或者激活未满60天"
                                        , _block=("main", 411, "设置变量"))
                                    #endif
                                    xbot_visual.programing.log(type="info", text="第二阶段出错", _block=("main", 413, "打印日志"))
                                    results.append([loop_item2,error2_innerText])
                                    if xbot_visual.workflow.test(operand1=error2_innerText, operator="not empty value", operand2="", operator_options="{\"values\":\"None,Empty,Blank\"}", _block=("main", 415, "IF 条件")):
                                        if xbot_visual.workflow.test(operand1=error2_innerText, operator="in", operand2="在购买后 60 天之前", operator_options="{\"ignoreCase\":\"True\"}", _block=("main", 416, "IF 条件")):
                                            error2_innerText = xbot_visual.programing.variable(value="解锁失败，设备活跃未满60天或者激活未满60天"
                                            , _block=("main", 417, "设置变量"))
                                        #endif
                                        if xbot_visual.workflow.test(operand1=error2_innerText, operator="in", operand2="欠费", operator_options="{\"ignoreCase\":\"True\"}", _block=("main", 419, "IF 条件")):
                                            error2_innerText = xbot_visual.programing.variable(value="解锁失败,此设备在ATT官方处于欠费状态"
                                            , _block=("main", 420, "设置变量"))
                                        #endif
                                        if xbot_visual.workflow.test(operand1=error2_innerText, operator="in", operand2="We can't unlock your device until 60 days post-purchase.", operator_options="{\"ignoreCase\":\"True\"}", _block=("main", 422, "IF 条件")):
                                            error2_innerText = xbot_visual.programing.variable(value="解锁失败，设备活跃未满60天或者激活未满60天"
                                            , _block=("main", 423, "设置变量"))
                                        #endif
                                        if xbot_visual.workflow.test(operand1=error2_innerText, operator="in", operand2="That IMEI number doesn't match any AT&T device.", operator_options="{\"ignoreCase\":\"True\"}", _block=("main", 425, "IF 条件")):
                                            error2_innerText = xbot_visual.programing.variable(value="您的设备可能不是AT&T运营商，或者是官换机，请检查\r\n"
                                            , _block=("main", 426, "设置变量"))
                                        #endif
                                        if xbot_visual.workflow.test(operand1=error2_innerText, operator="in", operand2="不匹配", operator_options="{\"ignoreCase\":\"True\"}", _block=("main", 428, "IF 条件")):
                                            error2_innerText = xbot_visual.programing.variable(value="您的设备可能不是AT&T运营商，或者是官换机，请检查\r\n"
                                            , _block=("main", 429, "设置变量"))
                                        #endif
                                        if xbot_visual.workflow.test(operand1=error2_innerText, operator="in", operand2="Looks like the IMEI number you entered doesn’t match an AT&T device. ", operator_options="{\"ignoreCase\":\"True\"}", _block=("main", 431, "IF 条件")):
                                            error2_innerText = xbot_visual.programing.variable(value="您的设备可能不是AT&T运营商，或者是官换机，请检查\r\n"
                                            , _block=("main", 432, "设置变量"))
                                        #endif
                                        if xbot_visual.workflow.test(operand1=error2_innerText, operator="in", operand2="您尝试解锁设备的次数过多", operator_options="{\"ignoreCase\":\"True\"}", _block=("main", 434, "IF 条件")):
                                            error2_innerText = xbot_visual.programing.variable(value="此设备由于提交解锁次数过多已被ATT官方限制，建议等待24小时后重新提交"
                                            , _block=("main", 435, "设置变量"))
                                        #endif
                                        if xbot_visual.workflow.test(operand1=error2_innerText, operator="in", operand2="技术", operator_options="{\"ignoreCase\":\"True\"}", _block=("main", 437, "IF 条件")):
                                            list1.append(loop_item2)
                                        #endif
                                        if xbot_visual.workflow.test(operand1=error2_innerText, operator="in", operand2="We're already processing an unlock request for this device. Check your request status for more info. You’ll need your request number and IMEI", operator_options="{\"ignoreCase\":\"True\"}", _block=("main", 440, "IF 条件")):
                                            error2_innerText = xbot_visual.programing.variable(value="您的解锁请求，已存在ATT系统中"
                                            , _block=("main", 441, "设置变量"))
                                        #endif
                                        if xbot_visual.workflow.test(operand1=error2_innerText, operator="in", operand2="我们已经在处理此设备的解锁请求。", operator_options="{\"ignoreCase\":\"True\"}", _block=("main", 443, "IF 条件")):
                                            error2_innerText = xbot_visual.programing.variable(value="您的解锁请求，已存在ATT系统中"
                                            , _block=("main", 444, "设置变量"))
                                        #endif
                                        if xbot_visual.workflow.test(operand1=error2_innerText, operator="in", operand2="分期付款计划付清之前", operator_options="{\"ignoreCase\":\"True\"}", _block=("main", 446, "IF 条件")):
                                            error2_innerText = xbot_visual.programing.variable(value="解锁失败,此设备在ATT官方处于欠费状态"
                                            , _block=("main", 447, "设置变量"))
                                        #endif
                                        if xbot_visual.workflow.test(operand1=error2_innerText, operator="in", operand2="您尝试解锁设备的次数过多", operator_options="{\"ignoreCase\":\"True\"}", _block=("main", 449, "IF 条件")):
                                            error2_innerText = xbot_visual.programing.variable(value="此设备由于提交解锁次数过多已被ATT官方限制，建议等待24小时后重新提交"
                                            , _block=("main", 450, "设置变量"))
                                        #endif
                                        if xbot_visual.workflow.test(operand1=error2_innerText, operator="in", operand2="数据库中找不到", operator_options="{\"ignoreCase\":\"True\"}", _block=("main", 452, "IF 条件")):
                                            error2_innerText = xbot_visual.programing.variable(value="解锁失败，在ATT官方无数据状态或者不是ATT运营商"
                                            , _block=("main", 453, "设置变量"))
                                        #endif
                                        if xbot_visual.workflow.test(operand1=error2_innerText, operator="in", operand2="丢失或被盗", operator_options="{\"ignoreCase\":\"True\"}", _block=("main", 455, "IF 条件")):
                                            error2_innerText = xbot_visual.programing.variable(value="解锁失败，此设备在ATT官方处于黑名单状态"
                                            , _block=("main", 456, "设置变量"))
                                        #endif
                                        if xbot_visual.workflow.test(operand1=error2_innerText, operator="in", operand2="我们已经在处理此设备的解锁请求", operator_options="{\"ignoreCase\":\"True\"}", _block=("main", 458, "IF 条件")):
                                            error2_innerText = xbot_visual.programing.variable(value="您的解锁请求，已存在ATT系统中"
                                            , _block=("main", 459, "设置变量"))
                                        #endif
                                        if xbot_visual.workflow.test(operand1=error2_innerText, operator="in", operand2="The account owner needs to remove the device from their account first. For assistance", operator_options="{\"ignoreCase\":\"True\"}", _block=("main", 461, "IF 条件")):
                                            error2_innerText = xbot_visual.programing.variable(value="解锁失败，此设备活跃在其他账户中"
                                            , _block=("main", 462, "设置变量"))
                                        #endif
                                        if xbot_visual.workflow.test(operand1=error2_innerText, operator="in", operand2="该设备仍处于合同期内。登录您的帐户以查看您的合同", operator_options="{\"ignoreCase\":\"True\"}", _block=("main", 464, "IF 条件")):
                                            error2_innerText = xbot_visual.programing.variable(value="解锁失败，因为该设备仍处于合同期内。"
                                            , _block=("main", 465, "设置变量"))
                                        #endif
                                        if xbot_visual.workflow.test(operand1=error2_innerText, operator="in", operand2="您想要解锁的设备在另一个AT&T账户上处于活动状态。账户所有者需要先从其账户中删除设备", operator_options="{\"ignoreCase\":\"True\"}", _block=("main", 467, "IF 条件")):
                                            error2_innerText = xbot_visual.programing.variable(value="解锁失败，此设备活跃在其它账户中"
                                            , _block=("main", 468, "设置变量"))
                                        #endif
                                        if xbot_visual.workflow.test(operand1=error2_innerText, operator="in", operand2="技术", operator_options="{\"ignoreCase\":\"True\"}", _block=("main", 470, "IF 条件")):
                                            error2_innerText = xbot_visual.programing.variable(value="t"
                                            , _block=("main", 471, "设置变量"))
                                        #endif
                                        if xbot_visual.workflow.test(operand1=error2_innerText, operator="!=", operand2="t", operator_options="{}", _block=("main", 473, "IF 条件")):
                                            put_order(loop_item2,error2_innerText)
                                            print("提交订单")
                                        #endif
                                        xbot_visual.programing.log(type="info", text=error2_innerText, _block=("main", 476, "打印日志"))
                                    #endif
                                    xbot_visual.programing.log(type="info", text=error2_innerText, _block=("main", 478, "打印日志"))
                                    xbot_visual.programing.log(type="info", text="提交流程2的错误", _block=("main", 479, "打印日志"))
                                #endif
                            else:
                                results.append([loop_item2,error_innerText])
                                if xbot_visual.workflow.test(operand1=error_innerText, operator="not empty value", operand2="", operator_options="{\"values\":\"None,Empty,Blank\"}", _block=("main", 483, "IF 条件")):
                                    xbot_visual.programing.log(type="info", text=error_innerText, _block=("main", 484, "打印日志"))
                                    if xbot_visual.workflow.test(operand1=error_innerText, operator="in", operand2="您尝试解锁设备的次数过多", operator_options="{\"ignoreCase\":\"True\"}", _block=("main", 485, "IF 条件")):
                                        error_innerText = xbot_visual.programing.variable(value="此设备由于提交解锁次数过多已被ATT官方限制，建议等待24小时后重新提交"
                                        , _block=("main", 486, "设置变量"))
                                    #endif
                                    if xbot_visual.workflow.test(operand1=error_innerText, operator="in", operand2="Looks like the IMEI number you entered doesn’t match an AT&T device.", operator_options="{\"ignoreCase\":\"True\"}", _block=("main", 488, "IF 条件")):
                                        error_innerText = xbot_visual.programing.variable(value="您的设备可能不是AT&T运营商，或者是官换机，请检查\r\n"
                                        , _block=("main", 489, "设置变量"))
                                    #endif
                                    if xbot_visual.workflow.test(operand1=error_innerText, operator="in", operand2="That IMEI number doesn't match any AT&T device. ", operator_options="{\"ignoreCase\":\"True\"}", _block=("main", 491, "IF 条件")):
                                        error_innerText = xbot_visual.programing.variable(value="您的设备可能不是AT&T运营商，或者是官换机，请检查\r\n"
                                        , _block=("main", 492, "设置变量"))
                                    #endif
                                    if xbot_visual.workflow.test(operand1=error_innerText, operator="in", operand2="不匹配", operator_options="{\"ignoreCase\":\"True\"}", _block=("main", 494, "IF 条件")):
                                        error_innerText = xbot_visual.programing.variable(value="您的设备可能不是AT&T运营商，或者是官换机，请检查\r\n"
                                        , _block=("main", 495, "设置变量"))
                                    #endif
                                    if xbot_visual.workflow.test(operand1=error_innerText, operator="in", operand2="We can't unlock your device until 60 days post-purchase.", operator_options="{\"ignoreCase\":\"True\"}", _block=("main", 497, "IF 条件")):
                                        error_innerText = xbot_visual.programing.variable(value="解锁失败，设备活跃未满60天或者激活未满60天"
                                        , _block=("main", 498, "设置变量"))
                                    #endif
                                    if xbot_visual.workflow.test(operand1=error_innerText, operator="in", operand2="分期付款计划付清之前", operator_options="{\"ignoreCase\":\"True\"}", _block=("main", 500, "IF 条件")):
                                        error_innerText = xbot_visual.programing.variable(value="解锁失败,此设备在ATT官方处于欠费状态"
                                        , _block=("main", 501, "设置变量"))
                                    #endif
                                    if xbot_visual.workflow.test(operand1=error_innerText, operator="in", operand2="数据库中找不到", operator_options="{\"ignoreCase\":\"True\"}", _block=("main", 503, "IF 条件")):
                                        error_innerText = xbot_visual.programing.variable(value="解锁失败，在ATT官方无数据状态或者不是ATT运营商"
                                        , _block=("main", 504, "设置变量"))
                                    #endif
                                    if xbot_visual.workflow.test(operand1=error_innerText, operator="in", operand2="丢失或被盗", operator_options="{\"ignoreCase\":\"True\"}", _block=("main", 506, "IF 条件")):
                                        error_innerText = xbot_visual.programing.variable(value="解锁失败，此设备在ATT官方处于黑名单状态"
                                        , _block=("main", 507, "设置变量"))
                                    #endif
                                    if xbot_visual.workflow.test(operand1=error_innerText, operator="in", operand2="在购买后 60 天之前", operator_options="{\"ignoreCase\":\"True\"}", _block=("main", 509, "IF 条件")):
                                        error_innerText = xbot_visual.programing.variable(value="解锁失败，设备活跃未满60天或者激活未满60天"
                                        , _block=("main", 510, "设置变量"))
                                    #endif
                                    if xbot_visual.workflow.test(operand1=error_innerText, operator="in", operand2="我们已经在处理此设备的解锁请求", operator_options="{\"ignoreCase\":\"True\"}", _block=("main", 512, "IF 条件")):
                                        error_innerText = xbot_visual.programing.variable(value="您的解锁请求，已存在ATT系统中"
                                        , _block=("main", 513, "设置变量"))
                                    #endif
                                    if xbot_visual.workflow.test(operand1=error_innerText, operator="in", operand2="The account owner needs to remove the device from their account first. For assistance", operator_options="{\"ignoreCase\":\"True\"}", _block=("main", 515, "IF 条件")):
                                        error_innerText = xbot_visual.programing.variable(value="解锁失败，此设备活跃在其他账户中"
                                        , _block=("main", 516, "设置变量"))
                                    #endif
                                    if xbot_visual.workflow.test(operand1=error_innerText, operator="in", operand2="该设备仍处于合同期内。登录您的帐户以查看您的合同", operator_options="{\"ignoreCase\":\"True\"}", _block=("main", 518, "IF 条件")):
                                        error_innerText = xbot_visual.programing.variable(value="解锁失败，因为该设备仍处于合同期内。"
                                        , _block=("main", 519, "设置变量"))
                                    #endif
                                    if xbot_visual.workflow.test(operand1=error_innerText, operator="in", operand2="您想要解锁的设备在另一个AT&T账户上处于活动状态。账户所有者需要先从其账户中删除设备", operator_options="{\"ignoreCase\":\"True\"}", _block=("main", 521, "IF 条件")):
                                        error_innerText = xbot_visual.programing.variable(value="解锁失败，此设备活跃在其它账户中"
                                        , _block=("main", 522, "设置变量"))
                                    #endif
                                    xbot_visual.programing.log(type="info", text="流程出错", _block=("main", 524, "打印日志"))
                                    xbot_visual.programing.log(type="info", text=error_innerText, _block=("main", 525, "打印日志"))
                                    if xbot_visual.workflow.test(operand1=error_innerText, operator="in", operand2="技术", operator_options="{\"ignoreCase\":\"True\"}", _block=("main", 526, "IF 条件")):
                                        error_innerText = xbot_visual.programing.variable(value="t"
                                        , _block=("main", 527, "设置变量"))
                                    #endif
                                    if xbot_visual.workflow.test(operand1=error_innerText, operator="!=", operand2="t", operator_options="{}", _block=("main", 529, "IF 条件")):
                                        put_order(loop_item2,error_innerText)
                                        print("提交订单")
                                    #endif
                                else:
                                    xbot_visual.programing.log(type="info", text="错误信息为空", _block=("main", 533, "打印日志"))
                                #endif
                                xbot_visual.programing.log(type="info", text="第一步提交时出错", _block=("main", 535, "打印日志"))
                            #endif
                        else:
                            xbot_visual.programing.log(type="info", text="IMEI码出现错误", _block=("main", 538, "打印日志"))
                            results.append([loop_item2,error_innerText])
                            xbot_visual.programing.log(type="info", text=results, _block=("main", 540, "打印日志"))
                            if xbot_visual.workflow.test(operand1=error_innerText, operator="not empty value", operand2="", operator_options="{\"values\":\"None,Empty,Blank\"}", _block=("main", 541, "IF 条件")):
                                if xbot_visual.workflow.test(operand1=error_innerText, operator="in", operand2="您尝试解锁设备的次数过多", operator_options="{\"ignoreCase\":\"True\"}", _block=("main", 542, "IF 条件")):
                                    error_innerText = xbot_visual.programing.variable(value="此设备由于提交解锁次数过多已被ATT官方限制，建议等待24小时后重新提交"
                                    , _block=("main", 543, "设置变量"))
                                #endif
                                if xbot_visual.workflow.test(operand1=error_innerText, operator="in", operand2="Looks like the IMEI number you entered doesn’t match an AT&T device.", operator_options="{\"ignoreCase\":\"True\"}", _block=("main", 545, "IF 条件")):
                                    error_innerText = xbot_visual.programing.variable(value="您的设备可能不是AT&T运营商，或者是官换机，请检查\r\n"
                                    , _block=("main", 546, "设置变量"))
                                #endif
                                if xbot_visual.workflow.test(operand1=error_innerText, operator="in", operand2="That IMEI number doesn't match any AT&T device. ", operator_options="{\"ignoreCase\":\"True\"}", _block=("main", 548, "IF 条件")):
                                    error_innerText = xbot_visual.programing.variable(value="您的设备可能不是AT&T运营商，或者是官换机，请检查\r\n"
                                    , _block=("main", 549, "设置变量"))
                                #endif
                                if xbot_visual.workflow.test(operand1=error_innerText, operator="in", operand2="不匹配", operator_options="{\"ignoreCase\":\"True\"}", _block=("main", 551, "IF 条件")):
                                    error_innerText = xbot_visual.programing.variable(value="您的设备可能不是AT&T运营商，或者是官换机，请检查\r\n"
                                    , _block=("main", 552, "设置变量"))
                                #endif
                                if xbot_visual.workflow.test(operand1=error_innerText, operator="in", operand2="We can't unlock your device until 60 days post-purchase.", operator_options="{\"ignoreCase\":\"True\"}", _block=("main", 554, "IF 条件")):
                                    error_innerText = xbot_visual.programing.variable(value="解锁失败，设备活跃未满60天或者激活未满60天"
                                    , _block=("main", 555, "设置变量"))
                                #endif
                                if xbot_visual.workflow.test(operand1=error_innerText, operator="in", operand2="分期付款计划付清之前", operator_options="{\"ignoreCase\":\"True\"}", _block=("main", 557, "IF 条件")):
                                    error_innerText = xbot_visual.programing.variable(value="解锁失败,此设备在ATT官方处于欠费状态"
                                    , _block=("main", 558, "设置变量"))
                                #endif
                                if xbot_visual.workflow.test(operand1=error_innerText, operator="in", operand2="数据库中找不到", operator_options="{\"ignoreCase\":\"True\"}", _block=("main", 560, "IF 条件")):
                                    error_innerText = xbot_visual.programing.variable(value="解锁失败，在ATT官方无数据状态或者不是ATT运营商"
                                    , _block=("main", 561, "设置变量"))
                                #endif
                                if xbot_visual.workflow.test(operand1=error_innerText, operator="in", operand2="丢失或被盗", operator_options="{\"ignoreCase\":\"True\"}", _block=("main", 563, "IF 条件")):
                                    error_innerText = xbot_visual.programing.variable(value="解锁失败，此设备在ATT官方处于黑名单状态"
                                    , _block=("main", 564, "设置变量"))
                                #endif
                                if xbot_visual.workflow.test(operand1=error_innerText, operator="in", operand2="分期付款计划付清之前", operator_options="{\"ignoreCase\":\"True\"}", _block=("main", 566, "IF 条件")):
                                    error_innerText = xbot_visual.programing.variable(value="解锁失败,此设备在ATT官方处于欠费状态"
                                    , _block=("main", 567, "设置变量"))
                                #endif
                                if xbot_visual.workflow.test(operand1=error_innerText, operator="in", operand2="您尝试解锁设备的次数过多", operator_options="{\"ignoreCase\":\"True\"}", _block=("main", 569, "IF 条件")):
                                    error_innerText = xbot_visual.programing.variable(value="此设备由于提交解锁次数过多已被ATT官方限制，建议等待24小时后重新提交"
                                    , _block=("main", 570, "设置变量"))
                                #endif
                                if xbot_visual.workflow.test(operand1=error_innerText, operator="in", operand2="数据库中找不到", operator_options="{\"ignoreCase\":\"True\"}", _block=("main", 572, "IF 条件")):
                                    error_innerText = xbot_visual.programing.variable(value="解锁失败，在ATT官方无数据状态或者不是ATT运营商"
                                    , _block=("main", 573, "设置变量"))
                                #endif
                                if xbot_visual.workflow.test(operand1=error_innerText, operator="in", operand2="丢失或被盗", operator_options="{\"ignoreCase\":\"True\"}", _block=("main", 575, "IF 条件")):
                                    error_innerText = xbot_visual.programing.variable(value="解锁失败，此设备在ATT官方处于黑名单状态"
                                    , _block=("main", 576, "设置变量"))
                                #endif
                                if xbot_visual.workflow.test(operand1=error_innerText, operator="in", operand2="技术", operator_options="{\"ignoreCase\":\"True\"}", _block=("main", 578, "IF 条件")):
                                    list1.append(loop_item2)
                                #endif
                                if xbot_visual.workflow.test(operand1=error_innerText, operator="in", operand2="在购买后 60 天之前", operator_options="{\"ignoreCase\":\"True\"}", _block=("main", 581, "IF 条件")):
                                    error_innerText = xbot_visual.programing.variable(value="解锁失败，设备活跃未满60天或者激活未满60天"
                                    , _block=("main", 582, "设置变量"))
                                #endif
                                if xbot_visual.workflow.test(operand1=error_innerText, operator="in", operand2="我们已经在处理此设备的解锁请求", operator_options="{\"ignoreCase\":\"True\"}", _block=("main", 584, "IF 条件")):
                                    error_innerText = xbot_visual.programing.variable(value="您的解锁请求，已存在ATT系统中"
                                    , _block=("main", 585, "设置变量"))
                                #endif
                                if xbot_visual.workflow.test(operand1=error_innerText, operator="in", operand2="The account owner needs to remove the device from their account first. For assistance", operator_options="{\"ignoreCase\":\"True\"}", _block=("main", 587, "IF 条件")):
                                    error_innerText = xbot_visual.programing.variable(value="解锁失败，此设备活跃在其他账户中"
                                    , _block=("main", 588, "设置变量"))
                                #endif
                                if xbot_visual.workflow.test(operand1=error_innerText, operator="in", operand2="该设备仍处于合同期内。登录您的帐户以查看您的合同", operator_options="{\"ignoreCase\":\"True\"}", _block=("main", 590, "IF 条件")):
                                    error_innerText = xbot_visual.programing.variable(value="解锁失败，因为该设备仍处于合同期内。"
                                    , _block=("main", 591, "设置变量"))
                                #endif
                                if xbot_visual.workflow.test(operand1=error_innerText, operator="in", operand2="您想要解锁的设备在另一个AT&T账户上处于活动状态。账户所有者需要先从其账户中删除设备", operator_options="{\"ignoreCase\":\"True\"}", _block=("main", 593, "IF 条件")):
                                    error_innerText = xbot_visual.programing.variable(value="解锁失败，此设备活跃在其它账户中"
                                    , _block=("main", 594, "设置变量"))
                                #endif
                                if xbot_visual.workflow.test(operand1=error_innerText, operator="in", operand2="技术", operator_options="{\"ignoreCase\":\"True\"}", _block=("main", 596, "IF 条件")):
                                    error_innerText = xbot_visual.programing.variable(value="t"
                                    , _block=("main", 597, "设置变量"))
                                #endif
                                xbot_visual.programing.log(type="info", text=error_innerText, _block=("main", 599, "打印日志"))
                                if xbot_visual.workflow.test(operand1=error_innerText, operator="!=", operand2="t", operator_options="{}", _block=("main", 600, "IF 条件")):
                                    put_order(loop_item2,error_innerText)
                                    print("提交订单")
                                #endif
                            #endif
                            xbot_visual.programing.log(type="info", text=error_innerText, _block=("main", 604, "打印日志"))
                            xbot_visual.programing.log(type="info", text="提交流程1的错误", _block=("main", 605, "打印日志"))
                        #endif
                        databook_row_count = xbot_visual.programing.databook.get_row_count(_block=("main", 607, "读取数据表格总行数"))
                        xbot_visual.programing.databook.write_data_to_workbook(write_range="area", write_way="append", write_column_way="override", row_num=lambda: databook_row_count+1, column_name="1", begin_row_num="1", begin_column_name="", content=results, _block=("main", 608, "写入内容至数据表格"))
                        # programing.databook.write_data_to_workbook
                        xbot_visual.web.browser.close(operation="close_specified", browser=web_page, web_type="cef", task_kill=False, _block=("main", 610, "关闭网页"))
                        xbot_visual.programing.log(type="info", text=exception, _block=("main", 611, "打印日志"))
                    #endtry
                #endloop
                # programing.sleep
                # programing.snippet
                # programing.log
            except Exception as exception2:
                exception2 = xbot_visual.trace(exception2)
                xbot_visual.programing.log(type="info", text=exception2, _block=("main", 618, "打印日志"))
            #endtry
        #endloop
        xbot_visual.excel.close(operation="close_specified", excel_instance=IMEI邮箱账号, close_way="save", filename=None, overwrite_file=True, close_process="office", task_kill=True, _block=("main", 621, "关闭Excel"))
    finally:
        pass
